I am not exactly sure what you are asking, but it does seem that if I set the size() to
size(800,800,P2D); instead of size(800,800); it runs faster (about 2 times faster). also the code that you gave me there, I tried adapting it and it says that these give nullpointers. rndr.textureSampling(point); rndr.hint(DISABLE_TEXTURE_MIPMAPS);
not sure what they do.
what does this stuff below do?
PGraphicsOpenGL rndr = (PGraphicsOpenGL)getGraphics();
rndr.textureSampling(point);
rndr.hint(DISABLE_TEXTURE_MIPMAPS);
also after adding that to my code, and messing with some settings in size(), a lot of things are giving errors even after I deleted them. I’m getting nullpoints, and a few divbyzero errors, that don’t make sense. all I did was put size(800, 800, OPENGL); and all this happened, I have since put it back to how it was, and after restarted processing, I still get the same errors.
I keep getting that its returning null with this one function:
PImage animateOffset(PImage[] imgs, int speed, int offset) {
int returnNumb = ((millis() + offset) / speed) % imgs.length;
return imgs[returnNumb];
}
It has always worked, and no speed is not 0, and imgs has stuff in it.
Even this print statement is giving me crashing and giving me nulls now.
println(returnNumb, imgs.length);
I am confused why when I did nothing, and then came back to the program an hour later it worked with no changes, when before it would crash every time it ran.