I recently switched from swing to javaFX and I noticed that everyone is using AnimationTimer to make a game loop. And my question is is there a performance advantage in using AnimationTimer over just using self made threads to run the game loop on ? Because so far in swing it was ok to just create threads that handle the render and update of the game but no one seems to do this in javaFX so I would like to know whether using self made threads can cause any performance issues.
Thanks in advance !