etternagame / etterna

Advanced cross-platform rhythm game focused on keyboard play
https://etternaonline.com/
MIT License
497 stars 135 forks source link

[Bug]: General input lag issues on Linux specifically #1238

Closed daisukidaisy closed 1 year ago

daisukidaisy commented 1 year ago

Is there an existing issue for this?

Contact Details

Please just reply right here.

Version Info

Latest available release

What operating system are you seeing the problem on?

Linux (any distro)

Bug Behavior

As someone who reads notes more visually than audibly, input lag greatly hinders my ability to play the game, and the "visual offset" setting doesn't help when the notes are clearly falling off what should be the timing window. Maybe it's just me, but I've been experiencing about 3 or 4 frames of input lag (60hz monitor). This didn't happen on my old computer, which ran Windows. My current computer is running Linux Mint (Cinnamon).

And before you ask: Yes, this IS specific to Etterna. Most FNF engines handle my inputs FLAWLESSLY on this OS.

Expected Behavior

No noticeable input lag. Duh.

Reproduction Steps

  1. Run Linux Mint (Cinnamon) on some computer or virtual machine.
  2. Download Etterna v0.72.1* for Linux.
  3. Try to play the game.

Anything else?

No response

daisukidaisy commented 1 year ago

UPDATE: I did not realize this issue was made after the release of a new version. 0.72.1 has the very same issues.

ghost commented 1 year ago

Just making sure, is your compositor off?

daisukidaisy commented 1 year ago

it's fixed when fullscreen is on, forgot to edit also i have no clue what compositor is

kurulen commented 1 year ago

Linux Mint (Cinnamon)

@daisukidaisy type env vblank_mode=0 before ./Etterna if you're going to want any chance at playing etterna on linux i'm going to put that environment variable in my flatpak build eventually (if i ever run linux again), so that people don't need to place an issue

kurulen commented 1 year ago

additionally, if you want vblank_mode to be 0 on boot, write vblank_mode=0 to /etc/environment if you think your system won't break you'll need to be root to do this, by the way; you can accomplish that with sudo -s, doas -s, or su (if your root account has a password set)

daisukidaisy commented 1 year ago

ok that worked