VirusGame icon indicating copy to clipboard operation
VirusGame copied to clipboard

[PERFORMANCE] Use FX2D

Open jessiejs opened this issue 3 years ago • 2 comments

I tested the sim with FX2D and it is considerably faster. That's all, I experienced no issues, just it being way faster, due to being rendered on the gpu.

Just make the size line say

size(1728,972, FX2D);

jessiejs avatar Oct 12 '21 21:10 jessiejs

When I tried it, it gave this error message:

java.lang.RuntimeException: Please use Sketch → Import Library to add JavaFX to your sketch. at processing.core.PApplet.makeGraphics(PApplet.java:1938) at processing.core.PApplet.createPrimaryGraphics(PApplet.java:1975) at processing.core.PApplet.initSurface(PApplet.java:10160) at processing.core.PApplet.runSketch(PApplet.java:10121) at processing.core.PApplet.main(PApplet.java:9845) RuntimeException: Please use Sketch → Import Library to add JavaFX to your sketch.

sleepybraincells avatar Apr 01 '23 08:04 sleepybraincells

Use Sketch -> Import Library then. :^)

jessiejs avatar Apr 03 '23 23:04 jessiejs