(12-15-2019, 02:23 PM)Kojin Wrote: It's the framerate divisor.
1 = 60 / 1 = 60fps
2 = 60 / 2 = 30fps
3 = 60 / 3 = 20fps
4 = 60 / 4 = 15fps
The game runs at different framerates depending on what's going on (video playing, dungeon, event, etc)
Doing it this way makes what you are doing really hard to follow. I tried as you described but got a different result.
Is there some reason you don't use a proper disassembler + pcsx2 debugger? For example you can watch for a read of mgNowFrameRate or breakpoint in mgGetNowFrameRate and it will be much easier to tell what you are doing.
Yeah I don't think it really counts if you do that. You can get 60fps by setting 20376C50 to 1. Of course this will set it to 1 in all cases so you'll have to find where (probably in the main loop) it gets set to 2. Mind you animation and character movement speed will be borked but if anything that's what you should be looking into. Not using turbo mode.
I took a short look and there is a function CharaControl @ 0x001a57b0 which calls mgGetNowFrameRate and divides it by 2f. I found that changing that to 1 will get you the character movement speed boost.
Thank You for your response
I set
20376C50 to 2 but i actived Turbo mode
120fps /2=60fps
After that i fixed the animation speed by using cheat engine
Animation speed = video fps/(30x(the value of
20376C50))
I changed it to
Animation speed = video fps/(30x4)
(I didnt
set 20376C50 to 4, i used cheat engine to change the Formula)
So the game is now runing full speed at 60 fps
I didnt set 20376C50 to 1 because I cant fix the walking distance
You can set 20376C50 to 1
And change "mov [pcsx2.exe+11396A0],eax " to " mov [01BE96A0],00000002 "
You will also get 60fps at full speed
But than your walking distance is low
but with your code i might be able to make to make fully working 60 fps code
Also I will try using PCSX2 Debuger, i just feel more comfortable with cheat engine