Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

[RPI] ofImage allocating double the space than needed?

$
0
0

I was a bit confused to find out that loading 20 Full HD RGB images on the Raspberry Pi 2 was too much for the available GPU memory of 256MB. Thinking that each image should only take up 6.95 MB. Then I took a look at the memory allocated on the GPU and each texture blob was taking up 13.9MB. Why is this happening? Is the ofPixels object also residing on the GPU? I always thought only the texture sits in GPU memory and the ofPixels object sits in system memory.

If the extra space comes from the ofPixels object, can I get rid of it if I just want to draw a texture to the screen?

(Yes, I can allocated more memory to the GPU but for this case its a really bad option for me)


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>