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

FPS keep dropping over time #1308

Closed
branchus opened this issue Feb 19, 2019 · 14 comments

Comments

@branchus
Copy link

commented Feb 19, 2019

Hi I set the target FPS at 60, when it starts, the FPS is at 60, but over time, it keeps drop to 55...50...45...40. generally within two hours game play.

I'm on windows 10 64bit and tried mGBA both 64bit and 32bit. and playing Final Fantasy VI advance. I have nVidia Quadro P2000 graphic card, Xeon CPU and 32GB RAM. I have used the 0.63, 0.70 and latest daily build, but all have the same issue.

Thanks

@kurayami6

This comment has been minimized.

Copy link

commented Feb 19, 2019

The exact same thing happened to me when I played Spyro 2: Season of Flame.

Very latest version of mGBA, Windows 7, GTX 970, i5.

@endrift

This comment has been minimized.

Copy link
Member

commented Feb 21, 2019

Have you confirmed it's not just the FPS counter, but that the FPS itself is actually dropping?

@branchus

This comment has been minimized.

Copy link
Author

commented Feb 21, 2019

Have you confirmed it's not just the FPS counter, but that the FPS itself is actually dropping?

Hi endrift

Yes, I confirm the FPS is actually drop together with the sound

@endrift

This comment has been minimized.

Copy link
Member

commented Feb 21, 2019

I haven't been able to reproduce this yet; I've left Mother 3 on audio test for about 5 hours to no framerate reduction.

@branchus

This comment has been minimized.

Copy link
Author

commented Feb 22, 2019

Hi Endrift

the issue persisting, anyway, I can always close and reopen. it may be the compatibility issue with graphic driver or audio driver.

I tried to switch the display driver to the software(Qt) driver, the FPS drop to 0.5FPS (unplayable). but the CPU usage is only 3%

@endrift

This comment has been minimized.

Copy link
Member

commented Feb 22, 2019

The software driver slows down if the window is larger. Are you in full screen?

@branchus

This comment has been minimized.

Copy link
Author

commented Feb 22, 2019

Yes, I'm using full screen and the screen resolution is 4k

Do you think the issue related to this full screen 4k resolution? I will try the smaller window and report it back
Thanks

@endrift

This comment has been minimized.

Copy link
Member

commented Feb 22, 2019

That explains why the software driver is so slow. See if a smaller window (1x preferable) makes software work at a reasonable rate and still slow down over time.

If it does still slow down over time try fiddling with the audio driver settings.

@branchus

This comment has been minimized.

Copy link
Author

commented Feb 24, 2019

That explains why the software driver is so slow. See if a smaller window (1x preferable) makes software work at a reasonable rate and still slow down over time.
If it does still slow down over time try fiddling with the audio driver settings.

Hi endrift

I tried to use x1 with software driver, the FPS locked at 0.5FPS with CPU load at 2% (unplayable)
I tried the x1 mode with OpenGL driver, it still slows down after a while.

the game I tested is final fantasy VI advance.

Thanks

@endrift

This comment has been minimized.

Copy link
Member

commented Feb 24, 2019

What are your sync settings, i.e. Sync to audio (recommended), sync to video, or both (not recommended)?

@branchus

This comment has been minimized.

Copy link
Author

commented Feb 24, 2019

I used to set sync to both
after I read your comment, I did below test
first, only turn off sync to video, game still slows down
then, turn off both sync, FPS goes to 600
finally, only turn off sync to audio, game no longer slows down

seems the issue is related to the audio driver

I'm using a usb audio interface (Focusrite Scarlett 2i4) ASIO audio driver with sample rate 48khz, buffer 256

@branchus

This comment has been minimized.

Copy link
Author

commented Feb 24, 2019

I think I solved the issue

if I choose buffer size 512 in my audio interface control panel, then the game no longer slows down

Thanks

@endrift

This comment has been minimized.

Copy link
Member

commented Feb 24, 2019

@kurayami6 can you confirm if this also fixes it for you?

@kurayami6

This comment has been minimized.

Copy link

commented Feb 24, 2019

Yeah it's fixed.

@endrift endrift closed this Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.