WayFix icon indicating copy to clipboard operation
WayFix copied to clipboard

Cursor visible when combined with Flashback

Open North-West-Wind opened this issue 1 year ago • 2 comments

When both Flashback and WayFix are loaded, the mouse cursor does not get hidden and is still visible on the screen.

Screenshot with the mouse cursor

This screenshot is taken with only Flashback, ModMenu, WayFix and their dependencies (Fabric API, Cloth Config API) loaded. The client is running in a KDE Plasma Wayland session on Linux (EndeavourOS). The computer has an NVIDIA 3060 Ti GPU and is using nvidia-open-dkms v565.57.01 as the video driver. Kernel module parameter nvidia_drm.modeset is also set to 1.

I have tried this on both the default Minecraft client parameters, and GraalVM EE JDK 21 with the following parameters:

-Xms4G -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysActAsServerClassMachine -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:+EagerJVMCI -Dgraal.TuneInlinerExploration=1 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:GCTimeRatio=99 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:G1ConcRSHotCardLimit=16 -XX:AllocatePrefetchStyle=3 -XX:ConcGCThreads=10 -XX:+UseLargePages -XX:LargePageSizeInBytes=2m

Some particular environment variables which I think may be related:

  • __GL_THREADED_OPTIMIZATIONS=0
  • GBM_BACKEND=nvidia-drm
  • __GLX_VENDOR_LIBRARY_NAME=nvidia

(BTW, this mod is awesome! It somehow managed to fix the low framerate on Wayland as well)

North-West-Wind avatar Jan 19 '25 06:01 North-West-Wind

I cannot seem to recreate this issue, have you tried using glfw-wayland?

not-coded avatar Jan 22 '25 19:01 not-coded

I was using glfw-wayland-minecraft-cursorfix and I just tried glfw-wayland (which is provided by the glfw package as well). It still has the same issue.

North-West-Wind avatar Jan 24 '25 06:01 North-West-Wind