Reduce CPU usage and increase FPS
Moderator: JeremyaFr
Re: Reduce CPU usage and increase FPS
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
Hello,
Here is a new WIP of the time hook.
Press Ctrl+Q to speed up the time.
Press Ctrl+A to slow down the time.
Download:
Hello,
Here is a new WIP of the time hook.
Press Ctrl+Q to speed up the time.
Press Ctrl+A to slow down the time.
Download:
You do not have the required permissions to view the files attached to this post.
- Ace Antilles
- Posts: 7705
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
The hook itself works fine @JeremyaFr.
I think the amount it's speeded up though is too fast.
It means you have little control and can overshoot things very quickly.
If the speed up time was reduced somewhat then it would be easier to know when to stop.
Would there be anyway of seeing a visual indicator of when the effect is active?
The slow down time works. I can't really tell if it's the right speed but it's ok.
Obviously this does have knock on effects as sounds play out of time or backlogged messages etc.
But it's handy for the times in the missions you are waiting for docking to finish etc.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
Hello,
Here is a new WIP.
I've reduced the speed up time multiplicator from 10 to 4. The slow down time divisor is 8.
I've added an indicator next to the "Time" HUD string. There is a "+" when the multiplicator is enabled and a "-" when the divisor is enabled.
Download:
Hello,
Here is a new WIP.
I've reduced the speed up time multiplicator from 10 to 4. The slow down time divisor is 8.
I've added an indicator next to the "Time" HUD string. There is a "+" when the multiplicator is enabled and a "-" when the divisor is enabled.
Download:
You do not have the required permissions to view the files attached to this post.
- Ace Antilles
- Posts: 7705
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
It did for me. I had wondered if any window modes cause issues.
Ctrl + A is select all I think in Windows.
So maybe it needs a different key?
Thank you @JeremyaFr those changes sound good. Not sure how soon I can test
- Ace Antilles
- Posts: 7705
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
It seems to work fineJeremyaFr wrote: ↑Thu Aug 04, 2022 5:22 pmWIP
Hello,
Here is a new WIP.
I've reduced the speed up time multiplicator from 10 to 4. The slow down time divisor is 8.
I've added an indicator next to the "Time" HUD string. There is a "+" when the multiplicator is enabled and a "-" when the divisor is enabled.
Download:
xwa_hook_time_WIP_2208041917.zip

Yes it's going to affect missions if used in the wrong places, but as a "cheat" option in right spot it's nice.
Well done Jeremy
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've merged the WIP version of the time hook into the stable version.
Hello,
I've merged the WIP version of the time hook into the stable version.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the time hook.
I've disabled the time speed in hangar.
Hello,
I've updated the time hook.
I've disabled the time speed in hangar.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the time hook.
I've fixed a bug with the timeGetTime function.
The timeGetTime function returns the number of milliseconds since the system startup.
This function returns an integer. So the max value is 0x7fffffff.
It overlaps every 24 days. (2147483647 / 1000 / 3600 / 24).
There can be unpredictable things when this happens.
I've fixed this bug by replacing the time since the system startup with the time since the game startup.
Hello,
I've updated the time hook.
I've fixed a bug with the timeGetTime function.
The timeGetTime function returns the number of milliseconds since the system startup.
This function returns an integer. So the max value is 0x7fffffff.
It overlaps every 24 days. (2147483647 / 1000 / 3600 / 24).
There can be unpredictable things when this happens.
I've fixed this bug by replacing the time since the system startup with the time since the game startup.
- AngeI
- Posts: 515
- Joined: Sun Jan 24, 2016 5:27 pm
Does this explain why one time I went from fast time to very slow bullet time? I couldn't fix it without restarting.JeremyaFr wrote: ↑Fri Nov 11, 2022 8:41 pmUPDATE
Hello,
I've updated the time hook.
I've fixed a bug with the timeGetTime function.
The timeGetTime function returns the number of milliseconds since the system startup.
This function returns an integer. So the max value is 0x7fffffff.
It overlaps every 24 days. (2147483647 / 1000 / 3600 / 24).
There can be unpredictable things when this happens.
I've fixed this bug by replacing the time since the system startup with the time since the game startup.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Perhaps.
One thing I noticed was keyboard input being broken.
One thing I noticed was keyboard input being broken.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the time hook.
I've fixed overlap time.
Hello,
I've updated the time hook.
I've fixed overlap time.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the time hook.
The time multiplicator/divisor is written to *(float*)0x0781E60.
Hello,
I've updated the time hook.
The time multiplicator/divisor is written to *(float*)0x0781E60.