Processing runs slow on Linux

I am using processing to make a game and I used the same laptop to run the game and on windows when I run the code it runs smoothly with no problems but when I use fedora or debian Linux it runs about 4 times slower
Laptop:
Lenovo IdeaPad 3
Intel core i3-1115g4
8gb of ddr4 ram
Intel integrated graphics

Hello @Yonatan,

Which version of Processing are you using on each system? Does this happen with every sketch, or only specific ones? What’s the simplest sketch where you notice the slowdown, and what framerate difference are you seeing?

If you haven’t already, could you try comparing Processing 4.3.4 and the 4.4.1 beta on Linux and let us know if performance differs between them? That would help diagnosing the issue.

Cheers,
Raphaël

I tried running it on processing 4.3.4, 4.4.1 beta and as an application and for some reason it’s still slow. Everything is slower. It feels like the game isn’t running at 60 fps because the things that are supposed to fall fast are falling slowly and the player is also moving slowly

While writing this post : I tried running mouse2D and it runs smoothly at 60 fps

Where I am learning Linux, a file called nitz13D is required to run the code so I have it on while running the code, it’s 1000 lines long so that might be the reason why it’s slow.

But that can’t be it because with the same setup it runs smoothly on windows.

Checking the task manager on fedora the PC has 1.5 gb of ram unused so it seems like something is stopping it from using more resources

I might be the dumbest person alive… I was on battery saver mode the WHOLE TIME

1 Like

I was on battery saver mode the WHOLE TIME

It happens to the best of us :grinning_face_with_smiling_eyes:

Glad you found the solution!