I'm sorry if this has already been talked about before, but I really can't find any straight out answers to it. I am writing a scratch program that reads in two lists, framebuffer and brightframebuffer, for hue and brightness, and then plots it out using the pen. Even in turbo speed, the program is very slow, and bound to be even slower once I hook it up to a practical application such as a real-time game (especially in 3D, like it should be able to handle) My question is, what kind of optimizations can I perform, as in turbo-speed it still runs like a snail.
Thanks again,
-bobbybee
Offline
What do you mean, roijac, by register less values? Put less things in the list, and do more at run-time?
Offline
Well... vector graphics, a smaller panel, lower resolution, random plotting are some I can think of.
Offline
I'm working on an algorithm for lower resolution pictures, but I still will need some more advanced algorithms to pair with. Even at a pen size of 4 it still takes about a half second per frame. Just my thoughts.
Offline
well alot of programs (not scratch) can read in the data from a file so less data is stored... maybe convince ST to support I/O in 2.0?
Offline
I don't think that would really change the speeds, and if it does it won't have a dramatic effect on it. Perhaps reading in images/models and using them as components of a final image that might make IO useful.
Offline