Page 2 of 4

Re: Laggs

Posted: 13 Oct 2016, 15:40
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

Re: Laggs

Posted: 13 Oct 2016, 19:49
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.

Re: Laggs

Posted: 13 Oct 2016, 21:04
by Rajmek1233
Nothing has changed

Re: Laggs

Posted: 13 Oct 2016, 21:38
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 :(

Re: Laggs

Posted: 13 Oct 2016, 21:52
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?

Re: Laggs

Posted: 13 Oct 2016, 21:56
by Jussi Koskela
And what's the frame rate when watching a paused replay?

Re: Laggs

Posted: 13 Oct 2016, 22:03
by Jussi Koskela
Is there a difference in frame rate if you select "No sounds" in DSJ4 Setup?

Re: Laggs

Posted: 13 Oct 2016, 22:12
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.

Re: Laggs

Posted: 14 Oct 2016, 20:44
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.

Re: Laggs

Posted: 23 Oct 2016, 19:00
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.

Re: Laggs

Posted: 23 Oct 2016, 22:11
by Rajmek1233
Works perfect!
Maybe a little new things in 1.6.2? :v

Re: Laggs

Posted: 24 Oct 2016, 17:49
by BartiSkiJumper
Yeah it's great now! Do you know what was the reason of it?

Re: Laggs

Posted: 24 Oct 2016, 18:18
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.

Re: Laggs

Posted: 24 Oct 2016, 18:25
by lenc
Works nicely, FPS is up to 180-190 now :)

Re: Laggs

Posted: 25 Oct 2016, 21:43
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.