Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[SOLVED]Rotate Picture Lag

So, I have this picture of a resolution of 800x800. I made it appear in RPG Maker
with no lag. But when I make it rotate, the FPS drops down to 20FPS. Is this normal?
How can it be solved?
 
Rotation is a very time-consuming process, and even more with huge pictures like yours. Significant slowdown is likely to occur and can hardly be prevented. The only solution I can think of is to perform a rotation only once in X frames. For example, instead of performing a 10 degrees rotation every frame, perform a 40 degrees rotation and then wait 4 frames. The rotation will appear less smooth but the slowdown should decrease.
 
The other option would be to save rotated versions of the image, and cache them individually.

Not sure if your application would support this. If you want smooth rotation of a large image, you might be out of luck.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top