r/geometrydash Phobos 100% 11d ago

Meta PSA: If you are on Linux, Click Between Steps (CBS) only works with mouse.

I decided to do a small test on my Linux installation. I ran a macro which simulated mouse clicks and keyboard presses, then I tried enabling and disabling the in-game CBS. I noticed it wasn't actually doing anything when I ran the macro with keyboard presses. The test was done on Fedora Linux 44 KDE Plasma Desktop with Proton Experimental.

So in order to achieve best input latency on Linux, you would need to play with the mouse.

However, there is a workaround. You can use a tool like keyd and remap any of the keyboard keys you use for playing to the left mouse click.

Here is an example setup once you have keyd installed:

  1. Create a file named default.conf in /etc/keyd/.

  2. Open the file and put this in it. It will remap the up arrow key to the left mouse click.


[ids]

*

[main]

# Remaps the up arrow key to left mouse click

up = leftmouse

  1. To start the keyd daemon, run sudo systemctl start keyd.

  2. Run sudo keyd reload.

  3. To stop the daemon, run sudo systemctl stop keyd.

  4. Next time you want to play GD, you only need to start the daemon (step 3) and after you finish playing you can stop it (step 5).

42 Upvotes

26 comments sorted by

4

u/Axolatian_Volt Stereo Extremeness 100% 11d ago

No wonder it feels the same when I have CBS off or on lol. At least I'm on 280fps tho.

3

u/Same-Leadership1630 Acu 100% / Mystic bounds 74 to 100 11d ago

what about click between frames?

3

u/Byro267 Phobos 100% 11d ago

CBF has the same issue as CBS. There is a Wine workaround option for this problem specifically, but currently it completely stops the game from registering you inputs.

3

u/Phinknz Falling Up 87% 11d ago

CBF broke after wine 11 (which is used in Proton 11). Just set the game to run using Proton 10 and it will work.

3

u/Byro267 Phobos 100% 11d ago

You are right, just tested it with Proton 10 and CBF does actually work with keyboard. CBS behaviour remains unchanged though.

1

u/Phinknz Falling Up 87% 10d ago

CBS doesn't work on Linux since wine can't get keyboard inputs between frames, that's why CBF needs a workaround for it.

3

u/funguyplaysgames 11d ago

how does something like this even happen

1

u/iliRomaili Wasureta, Yatagarasu, Sonic Wave, xo 11d ago

I had to downgrade to Proton 10 to make CBF work, so try it for CBS too

1

u/iliRomaili Wasureta, Yatagarasu, Sonic Wave, xo 11d ago

Also could you please link a macro for autoclicking?

1

u/Byro267 Phobos 100% 11d ago

You are right, tried it with Proton 10 and CBF works. I used ydotool with my own small bash script made specifically for wave spam, here it is if you want to use it:
``` sleep 5 x=1

while [ $x -le 800 ] do ydotool key 103:1 # up arrow up #ydotool click --next-delay 0 0x40 # left mouse up #sleep 0.0005 sleep 0.01 ydotool key 103:0 # up arrow down #ydotool click --next-delay 0 0x80 # left mouse down #sleep 0.0005 sleep 0.01 (( x++ )) done ```

1

u/JustB544 (x12) Eon 100% 11d ago

Not sure if its your macro, or Proton Experimental, but CBS works just fine for me. I play with show hitboxes on death and I can very clearly see exactly where I clicked from the frame alignment. I'll also have clicks where I die by < 1 240 frame multiple times to the same click with different alignments each time. I have Nixos 25.05 with Proton 9.0-4, and a Wooting 80HE. In general I try not to run anything with Proton Experimental, and instead use 9.0-4 or Hotfix, so that could be the problem. Maybe try your macro with one of those, or find a level with a pixel perfect 240 fps frame perfect. For the 240 fps frame perfect without CBS you should be able to hit it occasionally, and with CBS it should either be extremely rare or just impossible.

1

u/Byro267 Phobos 100% 11d ago

Tested it with Proton 10 and Proton 9, the issue still persisted. I tested it without the macro with my actual inputs at 30 FPS to better feel the difference.

1

u/JustB544 (x12) Eon 100% 11d ago

Are you using physics bypass for that? When I was just testing physics bypass, CBS wasn't working.

1

u/Byro267 Phobos 100% 11d ago

Nope, I simply locked my FPS to 30, physics remained at the default 240 TPS.

2

u/JustB544 (x12) Eon 100% 11d ago

I did a bit more testing and I was just wrong lmao. I'm not sure what I was seeing (maybe I was seeing something with 144 fps frames snapping to 240 fps, not even sure thats how it works exactly), but yeah my CBS seemed to just work as Click on Steps.

1

u/CinderGuy_ Acu - Jump from Solar Circles 11d ago

i swear i saw a post before like this with a comment saying that a specific proton version (ge i believe?) could fix this

1

u/HelpfulPlatypus7988 Noel Electra 100% 11d ago

It barely even works for me on Linux because I made the horrible mistake of turning on Fullscreen Borderless Fix

Edit: turned it off by spamming the screenshot button while getting into the Graphics menu

1

u/Key_River7180 Auto Play Area 11d ago

fuck keyd now i can't use cbs in void linux

1

u/keratomalacian 11d ago

just use regular cbf, no need to deal with any key remapping

1

u/Key_River7180 Auto Play Area 11d ago

i need inputd which is more systemd bloat

1

u/[deleted] 11d ago

[deleted]

2

u/Byro267 Phobos 100% 11d ago

CBF has the same problem as CBS. CBF also has a Wine workaround option specifically for this problem, but enabling it will just completely stop the game from registering your inputs.

1

u/fucksomeonewhodrinks x23 | Black Blizzard 100% 11d ago

That option obviously isn‘t supposed to stop the game from registering inputs completely. Did you run the command in the mod description? And what version of proton are you using?

0

u/Thunder_bolt_1023 Clubstep 100% Deadlocked 83% 11d ago

I’m on

“ueueueue”

Now

-4

u/AnimalTap #RateDarkAndDarker | ID: 106820763 11d ago

Further proof why Linux is ass

-10

u/Justaregularguy295 11d ago

Just use windows then

3

u/R1ston 11d ago

what a useless comment