Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Delta time for complex operations; How to?
Topic Started: Aug 31 2010, 07:42 PM (723 Views)
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
I'm trying to get delta time to work. I made a script called MoveExt which is the same as Move except it looks like this:

x+=(sin(argument1...*argument2+argument3)/global.DELTA
y+=(cos(argument1...*argument2+argument4)/global.DELTA
z-=(sin(argument0...*argument2-argument5)/global.DELTA

I call it like this

MoveExt(rotx,roty,SPEED,0,0,grav);
grav-=global.GRAVITY; Step();

Well it does not work. It is not a problem of lag...I test this on fixed frame rates and the results are totally different. By the way global.DELTA is called in the step event, global.DELTA=fps/60. The problem is the object follows different paths depending on frame rates, I'm trying to get it to follow the same trajectory regardless of frame rate.
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY

Til'c
 
Things will not calm down Daniel Jackson. They will infact calm up.
Offline Profile Quote Post Goto Top
 
Replies:
Reikyrr
Forum God
[ *  *  *  *  *  * ]
luenardi
Sep 1 2010, 09:37 PM
Yeah... i'm wondering too..
:offtopic
Riekyrr seems to be online but not answering his skype..
I hope he's ok.
Im fine, Im fine, dont worry :thumb_up:
~Inspirational quote~
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
Koning Stoma
Sep 1 2010, 08:51 PM
Whats your method?
based on this article http://www.koonsolo.com/news/dewitters-gameloop/
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY

Til'c
 
Things will not calm down Daniel Jackson. They will infact calm up.
Offline Profile Quote Post Goto Top
 
Koning Stoma
Member Avatar
Elite Member
[ *  *  *  * ]
There are a bunch of completely different methods in that article. My guess is you are using something like "Constant Game Speed with Maximum FPS" by calling external_call(global.u3d_render); at the right time. other than that I dont know how not to render a frame while running the game loop in game maker.
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
Koning Stoma
Sep 2 2010, 07:33 AM
There are a bunch of completely different methods in that article. My guess is you are using something like "Constant Game Speed with Maximum FPS" by calling external_call(global.u3d_render); at the right time. other than that I dont know how not to render a frame while running the game loop in game maker.
ya im using that one :D
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY

Til'c
 
Things will not calm down Daniel Jackson. They will infact calm up.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Off-topic · Next Topic »
Add Reply