fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Optimize multiple places for rendering

Open ihhub opened this issue 3 years ago • 2 comments

  • all event loops during battle animations did not check whether it is allowed to do rendering within handle event loop
  • custom delays were not reset properly causing slight delays in first frame to be rendered. Video playback was affected the most
  • avoid excessive rendering for multiple windows. Render only the area which was changed
  • add todo comments for the future changes
  • some animations during battle did not play the last frame like monster animation, hero's animation and hero's flag animation
  • small code cleanup

ihhub avatar Dec 23 '22 15:12 ihhub

Hi @Districh-ru , I would like to see your opinion about these changes, especially about animation of monsters, flags and heroes. Some monsters have become more smooth in animation but some like wolves not. It would be great if you can verify that I didn't break anything in your past efforts for animation.

ihhub avatar Dec 23 '22 15:12 ihhub