Vadru93 / LevelMod

THPS3 LevelMod
Other
20 stars 2 forks source link

Occasional freezing #102

Closed DCxDemo closed 3 years ago

DCxDemo commented 3 years ago

This happened several times already, after a while in free play the game randomly freezes in an infinite loop. It happens both during active gameplay and in background. Don't know the exact way to replicate that, try to leave the game on for a while in the background.

Vadru93 commented 3 years ago

I never had this issue, is it only in single player?

DCxDemo commented 3 years ago

I guess any mode. Here's the example of it happening basically on the ground, no inputs, almost 9 minutes in the run, smallest was about 4 minutes. 342789

DCxDemo commented 3 years ago

still freezes.

Vadru93 commented 3 years ago

Yeah I noticed it’s still producing wrong timers sometimes, not sure why that is...

The problem is that some stuff only use the low part of the queryperformancecounter, but to my understanding it should not refresh that often when you substract the starting time, but still sometimes it does and produces negative time elapsed..

Guess I need to look into the exact math of the old timer or simply use the old timer, or only use GetTickCount timer with 49 days reset. But think that one might reduce resolution slightly.

Maybe there actually is some other problem that interfere with the timer value.