Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Dynamic game speed depending on the framerate?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Martz
How do I cheat?
Reputation: 0

Joined: 23 Jan 2009
Posts: 2

PostPosted: Sat Jan 24, 2009 2:00 am    Post subject: Dynamic game speed depending on the framerate? Reply with quote

Is there a way to automatically change the speed of a game ("old" speed hack style) depending on your framerate? Also known as a "fixed time step" (each framerate has a fixed step of time associated with it).

So say if I was getting 30fps, the game speed would be 1 (normal), 15fps the game would be 1/2 speed and 60fps would make it 2x and all inbetween respectively, with the ability to change the framerate where the game is normal speed.

I'm asking because it would be very useful for any machinima makers who want a smooth video via pre-rendering. Some engines have this feature, like Source has a command "host_framerate" and Cryengine 2 has a command "fixed_time_step" which do exactly this and are used to render smooth fps videos even if the real time performance was bad.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jan 24, 2009 3:29 am    Post subject: Reply with quote

Looking at GetTickCount / QueryPerformanceCounter / timeGetTime may provide a way to mess with the framerate.

I'd imagine the engine would need support for what you mean though, as you have to ensure that every frame that should be rendered, is, despite actual performance. Source can directly output an AVI if I remember right, for example.
Back to top
View user's profile Send private message
Martz
How do I cheat?
Reputation: 0

Joined: 23 Jan 2009
Posts: 2

PostPosted: Sat Jan 24, 2009 4:50 am    Post subject: Reply with quote

Ok the first sentence confused me because I don't know where to find those values, and the second seems asthough you're confused, I'll try to explain myself better.

All the engine needs to support is the framerate I want to record at. I may have to turn off a frame limiter/vsync in some cases but most of the time this is no problem whatsoever. I haven't come across a game that the speedhack doesn't work with.

Recording to AVI won't be a problem either as Fraps has a "no sync" option which does exactly what Source's recorder does in terms of video. Audio is another thing but I'm willing to record silently.

So, I'll go into a bit more detail of what the speed hack does and what I want it to do:

I'm not sure what the "new" speedhack does because when I've tried it, the game simply freezes until I disable it. But the old one fools the game into thinking my framerate is higher than it actually is.

Say if I'm getting 30fps in a game, I turn the speedhack to 0.5 (half speed) and the game now thinks I'm doing 60fps, while the game is still being played at 30fps, at half speed.

This is great, it means that even though it's 30fps real time, it is infact being played at 60 frames per in-game second.

There's nothing at all I want to change about that system but the actual timescale itself (0.5) I want to be dynamic.

So it'd work like this:

Constantly get the current FPS from whatever game (example 12fps)

Divide it by the desired framerate (example 30fps)

Use this as the current timescale (example 0.4)

So if I wanted 30fps but was only getting 12fps, the hack would automatically set the timescale using the speedhack method to 0.4, which would change dynamically as my framerate does (0.2 if I go to 6fps, 0.5 if I get 15fps and all the inbetween numbers too).

Would this have to be a Cheat Engine feature itself or do you think it could be implamented as some sort of global trainer?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites