Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Frame tweening ? (Tier1 Windows)

Author
Message
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 4th Mar 2012 15:51 Edited at: 4th Mar 2012 17:08
Hello,

I can't achieve to reproduce Sync() function with the update,render, and swap functions (as said in help file). Animations don't "play". I've tried several values for the update time ... with no result ...

I want the screen to be refreshed at maximum speed (60FPS.. depending on the host) while controlling the game speed at 35fps for example. The problem is that the SetSyncRate function limits the screen refresh rate (and not only the gameloop rate) because it pauses the loop. And at 35FPS the refresh is visible (it flickers on screen scrolling etc...) .. and i want to have the game to run at the same gamespeed (35FPS) even if the host can refresh only at.. 45FPS for example (due to hardware limitation).

The idea is to render and swap each frame but update objects and animations at a lower rate.

Is there any example of an update/render/swap routine which works "really" like sync() ?

Thanks
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 4th Mar 2012 22:04
it seems the problem is already declared ... sorry.

http://forum.thegamecreators.com/?m=forum_view&t=194556&b=41
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th Mar 2012 17:01
Swap() has been fixed for 107
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 5th Mar 2012 18:12
Great Thanks again

Login to post a reply

Server time is: 2024-11-23 04:50:19
Your offset time is: 2024-11-23 04:50:19