Very Easy Out Of Memory Question..
in
Programming Questions
•
5 months ago
Why do i get an Out of Memory Error when i run add this line of code:
I'm pretty sure the answer is obvious.
I guess the .get command loads the picture every time so it will lag up quickly...
So how can i avoid that?
- for(int i=0;i<40;i++)
{
image(imgBlocks.get(0,0,16,16),i*16,352);
}
I'm pretty sure the answer is obvious.
I guess the .get command loads the picture every time so it will lag up quickly...
So how can i avoid that?
1