Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary high and gpu-unfriendly framerate in dx9 mode (+hint to solution) #322

Open
brussell1 opened this issue Jul 1, 2020 · 9 comments

Comments

@brussell1
Copy link
Contributor

brussell1 commented Jul 1, 2020

Using sfall's (or high resolution's) dx9 mode results in extreme framerates (300 - 1000+) on modern systems.
This leads to coil whine and heating-up of the gpu, especially when using additional post-processing shaders. Capping the framerate at screen refresh results in an unbearable slow game. Even a cap of 200 fps can be a sluggish experience.
I know at least two ddraw-wrapper that don't have this problem: cnc-ddraw and dgvoodoo. Latter has implementend a solution to this, after I reported the same problem here: https://www.vogons.org/viewtopic.php?f=59&t=66706&sid=6146fa50b2e0c4784f9cfbd341d3c9d1 (Dege explains a little bit in the fifth answer).

So hopefully this could be implemented in sfall as well.

@FakelsHub
Copy link
Contributor

Invite a specialist who will be able to implement it.

@NovaRain
Copy link
Collaborator

NovaRain commented Jul 2, 2020

I didn't notice unusually high GPU load when using DX9 (sfall graphics mode 5) with global shader on my desktop (E3-1231 V3 + GTX 970 + Win7). Maybe it's because I don't use additional shader stuff like ReShade?

@blackpaulillyria
Copy link

My GPU is regularly overheating in Mapper, not sure if that could help here.

@FakelsHub
Copy link
Contributor

FakelsHub commented Jul 5, 2020

My GPU is regularly overheating in Mapper, not sure if that could help here.

try enable ProcessorIdle option in sfall-m for mapper.

@blackpaulillyria
Copy link

try enable ProcessorIdle option in sfall-m for mapper.

I'm not familiar with sfall-m. Where can I download it? Or I can just use the regular sfall with Mapper?

@NovaRain
Copy link
Collaborator

NovaRain commented Jul 6, 2020

I'm not familiar with sfall-m. Where can I download it? Or I can just use the regular sfall with Mapper?

sfall for Mapper: https://www.dropbox.com/s/o5tzif2mgmv4b4z/sfallM.7z?dl=0
And no, regular sfall does not work with Mapper.

@blackpaulillyria
Copy link

sfall for Mapper: https://www.dropbox.com/s/o5tzif2mgmv4b4z/sfallM.7z?dl=0
And no, regular sfall does not work with Mapper.

Thank you!

@phobos2077
Copy link
Collaborator

phobos2077 commented Aug 16, 2022

I did some testing today on 2 different systems, experiencing the same issues with different settings (with and w/o HRP, different DX9 modes, resolutions, etc.):

  1. Windows 10 PC with NVidia GPU.

  2. Windows 11 laptop with Intel Iris Xe (iGPU).

In both cases to get rid of sluggish mouse movements and choppy gameplay animations I had to completely disable any external FPS limiters:

  1. Max Frame Rate and VSync (affects only full-screen mode) in case of NVidia.
  2. Smart VSync (global setting) in case of Intel.

Naturally this resulted in FPS as high as several thousands, which is bad for power efficiency and heat.

Seems like the way main loop is implemented in DX9 mode is wrong and needs some fixes. Probably different CPU idle settings needs to go (they seem like ugly half-working hacks) in favor of a proper frame pacing solution.

@eierfrucht
Copy link

eierfrucht commented Feb 12, 2024

You can manually patch and configure sFall to chainload cnc-ddraw and take full advantage of its every feature incl. the OpenGL and GDI renderers, fancy GLSL shaders, etc: #504 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants