Alriiiight.
I don’t know why, but I’m not seeing anyone complain of the fact you cannot manipulate single pixels in VolatileImage? ???
For instance, I set up a little stress test, I added a few dozen squares that render in random locations, and a few rotating cubes in the middle of the screen. With BufferedImage techniques I couldn’t get above 100fps, and I have a decent comp (specs below). Then I read about VolatileImage, my heart soared! I implemented it and SHAZAM! 500-600fps max.
My pc isn’t the problem either, it’s a 3.2ghz, 512mb ram, and a Geforce FX 5500.
Now I wanna mess around with some pixel-effects, like texture mapping etc. I tried using things like drawRect/drawLine etc. Drawing a simple 300x300 area with pixels using the aforementioned functions results in a drop of 480 fps. Why is it that a simple pixel set function is not available to VolatileImage? I mean, VI is meant to be better for rendering etc, yet it doesn’t support something so simple.
Anyways, this isn’t a rant. I’m just asking if anyone knows of a way to get around this problem? Is it possible to perhaps write to a BufferedImage first then copy it into the VolatileImage?
Thanks, Sam.