- Joined
- May 4, 2015
- Messages
- 113
- Reaction score
- 155
- First Language
- English
- Primarily Uses
- RMVXA
During battle I was getting 25~40 fps so I decided to investigate what was causing it. After a little bit I found out it's the hp and mp bars that cause it. Disabling them raised my fps to 55~57
With a little more snooping around, I found out it's the update_rate function the culprit. Seems like simply calculating IF the bar should update is enough to cause the fps drop
This is update_rate:
def update_rate
rate = [(@rate - real_rate).abs, setting[:ani_rate]].min
@rate += @rate > real_rate ? -rate : rate
refresh if rate > 0
end
But replacing it with
def update_rate
refresh
end
Is enough to raise the fps from 30 to 50
Same thing with the HP and MP numbers. After changing all of this I now get 58 or 59 fps constantly in battle. The only downside is that the bar width doesn't slide down anymore
With a little more snooping around, I found out it's the update_rate function the culprit. Seems like simply calculating IF the bar should update is enough to cause the fps drop
This is update_rate:
def update_rate
rate = [(@rate - real_rate).abs, setting[:ani_rate]].min
@rate += @rate > real_rate ? -rate : rate
refresh if rate > 0
end
But replacing it with
def update_rate
refresh
end
Is enough to raise the fps from 30 to 50
Same thing with the HP and MP numbers. After changing all of this I now get 58 or 59 fps constantly in battle. The only downside is that the bar width doesn't slide down anymore


