Hello guys,
How can i get vSync value which will be used for a device? For android vsync=33fps, for desktops vsync=60, for some old desktops vsync=75fps.
I need it to change physycs accuracy correctly (vsync*0.75f).
Thank you.
Hello guys,
How can i get vSync value which will be used for a device? For android vsync=33fps, for desktops vsync=60, for some old desktops vsync=75fps.
I need it to change physycs accuracy correctly (vsync*0.75f).
Thank you.
Physics should not depend on framerate in order to be accurate.
@kwando said: Physics should not depend on framerate in order to be accurate.
it does not depends. I know. I need to decrease it in some way. Android and Desktop has different decreasing values.
If it is not depending on the framerate why does it need to be synced with the vsync rate then?
@kwando said: If it is not depending on the framerate why does it need to be synced with the vsync rate then?
Man, I respect you a lot. but you did not answer the topic.
I use physics with old mobile devices (mobile phones). ans i want to use physics minimally.
To answer your query = I do not know.
There have to be some system property/jME property you can query to see if the app is running on a mobile device/platform… use that instead of the vsync value to determine which “performance mode” the game should run in.
[java]
if(isAndroid()){
setPhysicsRate(30);
}else{
setPhysicsRate(60);
}
[/java]
If you are using LWJGL, then Display.getDisplayMode().getFrequency() might be a good hint.
Thank you guys. It seems you helped me a lot. I’ll check it at home!