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

[FR] Frame-Limiter - can't play with this quite recent laptop #206

Closed
joemaro opened this issue Aug 31, 2016 · 2 comments
Closed

[FR] Frame-Limiter - can't play with this quite recent laptop #206

joemaro opened this issue Aug 31, 2016 · 2 comments

Comments

@joemaro
Copy link

joemaro commented Aug 31, 2016

is a frame-limiter possible?
i use a quite recent gaming laptop and running oolite is just heating the CPU too much, while rendering 300fps.
Lowering the gfx details doesn't do the job because it will continue to render as much as possible.
Is there maybe another way of tackling this?
Would love to really try your game!
Thanks for taking the time to respond!

@AnotherCommander
Copy link
Member

AnotherCommander commented Aug 31, 2016

What OS are you using? On Windows and Linux, Oolite tries to set Vsync when it starts up so you normally should be getting FPS equal to your monitor's refresh rate. For various reasons, (mostly the related OpenGL extension missing from your gfx card's drivers), this might fail. However, 300 FPS seems too much. The game is set to render at maximum 200 FPS so I am not sure what exactly is going on there.

In any case, try editing your .GNUstepDefaults file and add this line inside the "oolite" section, to limit your FPS to the desired number (60 in the example below):

animation_timer_interval = 0.0167;

You need to use a value of 1.0/desiredFPS.
Hope this helps.

@joemaro
Copy link
Author

joemaro commented Sep 3, 2016

Hey! Thanks a lot for the reply!
Sorry didn't mention details: Manjaro Linux (arch based) running it on the intel part of a optimus system (the nvidia part doesnt work well for me under linux, but that doesnt matter here)

So i added your recommendation but haven't succeeded yet, maybe because the file you mentioned is a XML file, so i tried to add a key like this

        <key>animation_timer_interval</key>
        <real>0.0167</real>

but didn't notice any change ingame (still lots of cpu-power needed)

I edited the file that comes with oolite and is inside "GNUstep/Defaults".

i now realized that the game always refers to the absolute ~/GNUstep directory, and my issue is hereby solved! :)

Thanks again!

@joemaro joemaro closed this as completed Sep 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants