PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

VSync in 2700G chip

Hi! :D

I'm writing a 2D program using PowerVR MBX (the 'lite' release?) and I'm surprised about the slow execution of my program despite the simplicity of it. I think (but I'm not sure) that the main problem could be the vsync, I has read that I could disable vsync using eglSwapInterval, but this function is not available for the PowerVR release that I'm using... Are there any other possibility to disable vsync? Is really so slow to change a texture bitmap using glTexSubImage2D with the 2700G chip? Exist any other OpenGLES implementation instead of PowerVR that supports Dell Axim acceleration?

Thanks!
It was really frustrating... I tried to add a GetTickCount() just before and after glTexSubImage2D and this tooks 37 milliseconds to update the texture!! 8O I also tried to put the GetTickCount() to get the entire draw time commenting the line glTexSubImage2D and it tooks 1 or 2 milliseconds... so glTexSubImage2D seems to be the problem :( I don't know how I could solve this issue.
Bandwidth to the GPU is still an issue, especially on mobile devices. When I ported GL Quake to OpenGL ES for ATI we had performance problems that could only be resolved by caching pretty much everything on the GPU - both geometry and textures.

So unless you can fit all your tiles in DRAM you are going to run into performance problems.

Someone here at PM (hm or drgolide maybe?) figured out how to directly access the DRAM, and were able to improve the performance of uploading textures to the GPU.

Dan East
Dan East wrote:Someone here at PM (hm or drgolide maybe?) figured out how to directly access the DRAM, and were able to improve the performance of uploading textures to the GPU.


I only find a couple of post of 'Tala' saying something about to search the texture in the DRAM memory without more explains. I tried to find my texture without results... someone made an 'uploader'? what's the format of the texture once in DRAM memory? (it doesn't seem to be RGB5_6_5)

Thanks
PowerVR has two compressed texture formats. These can be stored directly into memory, and thus the download time is very fast. If your images are static, you can use this format. If your images are not, you can use RGB565. If you are seeing slow download times, it is probably because you are using a format or size that doesn't fit. ie; the texture size must be a power of 2, you can't download sub-images, things must fit RGB565 or one of the compressed formats.
While texture download is slow, it is not that slow (37ms). We play movies using a 256x256 RGB565 texture and it plays at 30fps with plenty of time to spare. If you would like, you can post your download code and I will look to see if I see any performance problems.
joshbu [MSFT] · 08 Mar 2006, 21:17 UTC
Direct3D Mobile offers the ISV much tighter control of where your resources are stored than OpenGL ES. Just as an FYI. 8)
I only find a couple of post of 'Tala' saying something about to search the texture in the DRAM memory without more explains. I tried to find my texture without results... someone made an 'uploader'? what's the format of the texture once in DRAM memory?


VSync is not an issue. Infact the swap chains are faster in fullscreen mode with VSync on.

Regarding the textures. They are swizzled into Morton Order within local Video Memory to improve cache locality. You can directly write the textures into video memory once you figured the address out.

Also access to video memory is kinda slow. Writing a 256x256 texture takes a few ms. I suggest to load all your assets into local memory before you start to draw anything.

Tala