libcg / gLib2D

A simple, fast, light-weight 2D graphics library for PSP.
GNU Lesser General Public License v3.0
46 stars 12 forks source link

A question in regards to VRAM #4

Open nikmes opened 8 years ago

nikmes commented 8 years ago

Draw & display buffers can't actually be used as real textures. Just a way to get the vram pointer. I assume this library dose not utilize the VRAM. Is that assumption correct? I do not see any valloc or vfree calls.

libcg commented 8 years ago

Yes. I once managed to use the framebuffer as a texture with pspgu to do a blur effect. That was the point of these... But for some reason I could never get it to work again. Otherwise all the textures are stored in RAM.

nikmes commented 8 years ago

Hi, I understand how it works :) I used the vmalloc statment to get memmory from VRAM instead but and i notice that only 0.6Mb remains free in VRAM after you allocate for DISPLAY, DRAW and DEPTH Buffers which is very little :) I am wondering if it worth to develop a functionality that will swap in and out textures from PSP RAM to VIDEO RAM.