ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.65k stars 371 forks source link

Mouse cursor too high inertion #9004

Closed shprotru closed 1 month ago

shprotru commented 1 month ago

Preliminary checks

Platform

Linux

Describe the bug

Impossible to control mouse pointer with enough powerful hardware, i7-7700k, nvidia gtx 1060 and 32gb ddr4 ram memory, in screen resolution 1280x720 while host resolution is 3840x2160, it's slow and getting inertion effect. Possible root of a problem: https://github.com/ihhub/fheroes2/pull/8912

https://github.com/user-attachments/assets/2f3dc2f5-fc24-4c3e-85e1-6e0f1f78d9a8

Additional info

No response

oleg-derevenetz commented 1 month ago

Possible root of a problem: https://github.com/ihhub/fheroes2/pull/8912

What if you bring the while ( SDL_PollEvent( &event ) ) loop back? Does it help?

shprotru commented 1 month ago

Possible root of a problem: #8912

What if you bring the while ( SDL_PollEvent( &event ) ) loop back? Does it help?

yes! I returned the code of handleEvents function to previous state, when it uses while loop, and this helps!