Weird rendering problem: render 2 times at 1/4 size

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
dr_watson
Posts: 42
Joined: Mon Nov 28, 2005 11:30 am

Weird rendering problem: render 2 times at 1/4 size

Post by dr_watson »

Has anyone experienced this before? As shown in the screen shot below, the screen is rendered 2 times at 1/4 size.

The display mode used was set to 8888 and it seemed like the screen was rendered as it was 4444 or other 16bit pixel format.

The weird thing about it was that the problem seemed to be quite random. Sometimes few lines of code changes would make it go away but then sometimes it happens again with no obvious reason.

It was suggested the problem could be related to cache so I put a "sceKernelDcacheWritebackAll();" at the end of my render function but it didn't solve the problem completely.

Anyone has any ideas?


Image
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Try increasing your display list. Also, check your whole program for any possible buffer/stack overflows.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
ufoz
Posts: 86
Joined: Thu Nov 10, 2005 2:36 am
Location: Tokyo
Contact:

Post by ufoz »

I used to get this randomly and the problem would go away on its own in a different build with irrelevant changes (also randomly depending on wether or not I was using psplink at the time)
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

also this could happen if you set your framebuffers to 1/4 the size
if you change FRAME SIZE to lower than 512

also check sceDisplayBuffer & sceDrawBuffer
10011011 00101010 11010111 10001001 10111010
Post Reply