java 2d Game its working in windows but on mac or linux is slow

hi, i have some game structure im using, when i run the game for testing purposes, run smoothly in windows, but when i run it on linux, the laptop almost freezes everything, in mac is working but i can see the drop rate. i dont know if that is normal or if is because of different hardware.

Try seeing if xrender on Linux is any better - https://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#xrender

Usually frame rates are similar on all platforms, as far as I know. There might be something special about your game structure that is slowing things down. Can you tell us more about your game, what demands it makes on the OS?

Get out the profiler and find out whats the bottleneck!

Is hardware accelleration being used?

Try setting:

System.setProperty("sun.java2d.opengl","True");