Search found 3 matches
- Wed Jun 10, 2015 5:49 pm
- Forum: General
- Topic: Faster pixel by pixel render?
- Replies: 10
- Views: 8350
Re: Faster pixel by pixel render?
Just tried both mapPixel and setPixel. Using setPixel was twice faster than mapPixel for some reason, but still twice slower than useing spriteBatch with 64000 sprites... I guess optimizing spriteBatch method is the only optimal way. So far I found these ways for optimization: use set instead of cle...
- Wed Jun 10, 2015 4:18 pm
- Forum: General
- Topic: Faster pixel by pixel render?
- Replies: 10
- Views: 8350
Re: Faster pixel by pixel render?
The thing is I want to update it often, once per two frames preferably. What I'm trying to do is something like http://en.wikipedia.org/wiki/Memory-mapped_I/O . Basically, there is a programmable computer inside a love game, and to draw to the screen you'd need to set a value to some address in memo...
- Wed Jun 10, 2015 11:36 am
- Forum: General
- Topic: Faster pixel by pixel render?
- Replies: 10
- Views: 8350
Faster pixel by pixel render?
Hello lovers! I'm trying to improve my rendering method. It's really simple, 320x200 canvas with 16 colors, but I need to draw it pixel by pixel, taking a value from a 2d array. What I do now is have a spritebatch and 16 1x1 quads (for each color), and when I need to render the canvas, I clean the b...