forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pspgl texture caching issues

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Fri Sep 23, 2005 1:27 am    Post subject: pspgl texture caching issues Reply with quote

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
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Fri Sep 23, 2005 1:58 am    Post subject: Reply with quote

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
View user's profile Send private message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Fri Sep 23, 2005 2:17 am    Post subject: Reply with quote

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
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Fri Sep 23, 2005 2:29 am    Post subject: Reply with quote

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
View user's profile Send private message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Fri Sep 23, 2005 4:31 am    Post subject: Reply with quote

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
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Fri Sep 23, 2005 7:49 am    Post subject: Reply with quote

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
View user's profile Send private message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Fri Sep 23, 2005 8:20 am    Post subject: Reply with quote

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
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Fri Sep 23, 2005 8:36 am    Post subject: Reply with quote

can you please post a simple test case that demonstrates your problem?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group