You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My game shows system cursor only when mouse is over UI, other case custom sprite cursor is drawn on the game screen. After integrating egui-miniquad mouse cursor is always visible.
It calls mq_ctx.show_mouse() every frame, which makes the cursor change very laggy (at least on Windows). My experiments show if I call show_mouse() only when mouse cursor state needs to change, the cursor change is instant. I guess the OS event queue gets stuck by setting the mouse cursor so often.
The text was updated successfully, but these errors were encountered:
smokku
added a commit
to smokku/egui-miniquad
that referenced
this issue
Aug 24, 2021
There are two issues with how
egui-miniquad
handles mouse cursor currently.end_frrame
:egui-miniquad/src/lib.rs
Line 179 in e388643
My game shows system cursor only when mouse is over UI, other case custom sprite cursor is drawn on the game screen. After integrating
egui-miniquad
mouse cursor is always visible.mq_ctx.show_mouse()
every frame, which makes the cursor change very laggy (at least on Windows). My experiments show if I callshow_mouse()
only when mouse cursor state needs to change, the cursor change is instant. I guess the OS event queue gets stuck by setting the mouse cursor so often.The text was updated successfully, but these errors were encountered: