Laggs

Bugs in DSJ4.
BartiSkiJumper
Posts: 855
Joined: 22 Dec 2011, 00:24
Location: Wrocław, Poland

Re: Laggs

Post by BartiSkiJumper »

I'm using Windows 10 and i have the same problem too. Also, I have similar situation in DSJ3 when i turn on some stream on Twitch, open a new tab and then go to the game. The weird thing is, that when i turn on DSJ4 after that, the problem disappears. It's not a big problem, but that means there is something wrong in the game
Bartek Winczaszek:
DSJ3 TL - 7850.57m #1
DSJ4 TL - 3543.26m #6
DSJ4 Online Peak: 1959 #1
TDD 2013-2020: #2 - #3 - #2 - #2 - #1 - #2 - #1 - #1

My YT and Twitch channels: youtube.com/user/BartiSkiJumper - twitch.tv/BartiDSJ
Jussi Koskela
Site Admin
Site Admin
Posts: 3176
Joined: 22 Jan 2007, 14:42
Location: Finland
Contact:

Re: Laggs

Post by Jussi Koskela »

I built a test version which disables the frame rate cap and tries to utilize all the CPU power it can get. Normally DSJ4 caps the frame rate to ~200 FPS, which could cause the CPU to throttle down too much. I haven't been able to reproduce the problem, so this is mostly guessing. Please report if this version works better.

Edit: no need for testing any more.
Rajmek1233
Posts: 897
Joined: 10 Apr 2011, 21:28

Re: Laggs

Post by Rajmek1233 »

Nothing has changed
lenc
Posts: 10
Joined: 06 Feb 2011, 20:38

Re: Laggs

Post by lenc »

The weird thing is that in the menus you can see the change. Framerate is over 3000 with 99% utilisation of the GPU. But when you load the hill and start jumping, it is exactly like before :(
Jussi Koskela
Site Admin
Site Admin
Posts: 3176
Joined: 22 Jan 2007, 14:42
Location: Finland
Contact:

Re: Laggs

Post by Jussi Koskela »

lenc wrote:The weird thing is that in the menus you can see the change. Framerate is over 3000 with 99% utilisation of the GPU. But when you load the hill and start jumping, it is exactly like before :(
Strange indeed. What's the framerate in the intro or when selecting suit colors?
Jussi Koskela
Site Admin
Site Admin
Posts: 3176
Joined: 22 Jan 2007, 14:42
Location: Finland
Contact:

Re: Laggs

Post by Jussi Koskela »

And what's the frame rate when watching a paused replay?
Jussi Koskela
Site Admin
Site Admin
Posts: 3176
Joined: 22 Jan 2007, 14:42
Location: Finland
Contact:

Re: Laggs

Post by Jussi Koskela »

Is there a difference in frame rate if you select "No sounds" in DSJ4 Setup?
lenc
Posts: 10
Joined: 06 Feb 2011, 20:38

Re: Laggs

Post by lenc »

Jussi Koskela wrote:
lenc wrote:The weird thing is that in the menus you can see the change. Framerate is over 3000 with 99% utilisation of the GPU. But when you load the hill and start jumping, it is exactly like before :(
Strange indeed. What's the framerate in the intro or when selecting suit colors?
About 140 during the intro: DSJ4_intro.png and 150 during the color selection: DSJ4_suit.png
Jussi Koskela wrote:And what's the frame rate when watching a paused replay?
About 55: DSJ4_replay.png
Jussi Koskela wrote:Is there a difference in frame rate if you select "No sounds" in DSJ4 Setup?
No difference.
Jussi Koskela
Site Admin
Site Admin
Posts: 3176
Joined: 22 Jan 2007, 14:42
Location: Finland
Contact:

Re: Laggs

Post by Jussi Koskela »

Further investigation showed that the problem is actually reproducible on my computer, too. I get about 60 fps, which is as fluent as it gets, but much less than expected.

The root of the problem seems to be extremely slow rendering of primitives which require software vertex processing (i.e. ski jumper, shadows, flags). Why this is happening is still unknown to me. It could be graphics driver, DirectX or Windows 10 related issue, or all combined. I'll try to find a solution.
Jussi Koskela
Site Admin
Site Admin
Posts: 3176
Joined: 22 Jan 2007, 14:42
Location: Finland
Contact:

Re: Laggs

Post by Jussi Koskela »

Here's my second try to fix the lags:
http://mediamond.fi/dev/DSJ4v161-T2.zip

As a workaround I made my own version of indexed vertex blending. In the uncapped mode the frame rate is about 4 times higher than with the original DirectX implementation.
This change should also fix the graphics problems, which were present in Wine, though I didn't try it yet.

I also included an option to DSJ4 Setup to enable/disable Vertical Sync.

Please tell me if this version runs flawlessly and I will soon release official "bug fix" as v1.6.2.
Rajmek1233
Posts: 897
Joined: 10 Apr 2011, 21:28

Re: Laggs

Post by Rajmek1233 »

Works perfect!
Maybe a little new things in 1.6.2? :v
BartiSkiJumper
Posts: 855
Joined: 22 Dec 2011, 00:24
Location: Wrocław, Poland

Re: Laggs

Post by BartiSkiJumper »

Yeah it's great now! Do you know what was the reason of it?
Bartek Winczaszek:
DSJ3 TL - 7850.57m #1
DSJ4 TL - 3543.26m #6
DSJ4 Online Peak: 1959 #1
TDD 2013-2020: #2 - #3 - #2 - #2 - #1 - #2 - #1 - #1

My YT and Twitch channels: youtube.com/user/BartiSkiJumper - twitch.tv/BartiDSJ
Jussi Koskela
Site Admin
Site Admin
Posts: 3176
Joined: 22 Jan 2007, 14:42
Location: Finland
Contact:

Re: Laggs

Post by Jussi Koskela »

BartiSkiJumper wrote:Yeah it's great now! Do you know what was the reason of it?
I'm not sure about the exact reason. DSJ4 uses DirectX 9 API, which is already 14 years old, and obviously keeping good backwards compatibility was not on somebody's priority.
lenc
Posts: 10
Joined: 06 Feb 2011, 20:38

Re: Laggs

Post by lenc »

Works nicely, FPS is up to 180-190 now :)
lenc
Posts: 10
Joined: 06 Feb 2011, 20:38

Re: Laggs

Post by lenc »

lenc wrote:Works nicely, FPS is up to 180-190 now :)
Wow, I just installed the new Nvidia driver and the FPS has suddenly dropped to about 70-80 :shock: Nothing else has changed as far as I know.
Post Reply