| View previous topic :: View next topic |
| Author |
Message |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Fri Sep 23, 2005 1:27 am Post subject: pspgl texture caching issues |
|
|
Can someone please tell me how to avoid this.
I had it working till the latest stuff in pspgl. Now even having:
sceKernelDcacheWritebackAll();
glFlush();
doesn't do the trick. My textures arn't being rendered, only some are. This was a problem before, but I had temperarily solved it by adding the above lines after my texture calls and render calls.
Any other ideas??
Thanks
Jeff. |
|
| Back to top |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Fri Sep 23, 2005 1:58 am Post subject: |
|
|
| you want to use glFinish(), not glFlush(), to await completion of rendering commands. I hope to get texture VRAM management done within the next week or so, then you don't need any of it anymore. |
|
| Back to top |
|
 |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Fri Sep 23, 2005 2:17 am Post subject: |
|
|
holger,
I've tried that too. Where exactly do I put that, after the render calls? I had that in there before and it didn't work. so I started trying different variations of that and sceKernelDcacheWritebackAll() but that didn't work either.
Any other ideas?
Jeff. |
|
| Back to top |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Fri Sep 23, 2005 2:29 am Post subject: |
|
|
| sceKernelDcacheWritebackAll() before calling the glTex*() functions, glFinish() after the vertex render functions before you are moving to the next texture on the same texture object. |
|
| Back to top |
|
 |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Fri Sep 23, 2005 4:31 am Post subject: |
|
|
I made those changes and still am not getting some textures rendered. Most are, but still some arn't and its sorda random... It definatly is a texture cache issue. Any other things I can try to force the rendering context to flush after each object?
Objects are all 2 triangles with a texture.
Thanks
Jeff. |
|
| Back to top |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Fri Sep 23, 2005 7:49 am Post subject: |
|
|
| ermmm... can you please update your SVN tree? I added a texture sync command before issuing the render command, now the GE awaits completion of the transfer before starting to render something. Can you please test and see if this solves your problem? |
|
| Back to top |
|
 |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Fri Sep 23, 2005 8:20 am Post subject: |
|
|
I got your updates and it doesn't seem to help, infact there are more missing pieces now than before :( . Any other ideas?
Thanks
Jeff. |
|
| Back to top |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Fri Sep 23, 2005 8:36 am Post subject: |
|
|
| can you please post a simple test case that demonstrates your problem? |
|
| Back to top |
|
 |
|