PocketMatrix forums

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

Fix for white screen problem

Hi!
As I tried quake yesterday on my Toshiba E800 PPC I had the (known) white screen problem.

After hunting for the problem in the sources I finally found a way to avoid it.

The problem is the way the GAPI-screenbuffer is used in the VID_Update function.

Related to the specs there should be a GXBeginDraw and a GXEndDraw around the use of the buffer. It seems that the global way used, does not work for some pocket pc. So as I put it in the VID_Update function, as in the code below, it worked for my PocketPC. (And I tell you, E800 has nice framerate :-)

So feel free to try...

Soenke
(free member of Absynth Interactive)


Code:

void VID_Update (vrect_t *rects)
{

....

if (!VID_GetScreenBuf(0)) return;

// White Screen Fix by Soenke Dirksen ---Start 1
pScreenBuf=(unsigned short *)(*GXBeginDraw_)();
// White Screen Fix by Soenke Dirksen ---End 1

cdst=pDrawStart;
csrc=vid.buffer;

while (csrc<colEnd) {
//Calculate the ending row pixel
rowEnd2=csrc+rowEnd;
while (csrc<rowEnd2) {
//The next line is what actually sets the color value of the display pixel
*cdst=(short)vid_curpal[*csrc];
//Increment our source and display buffer pointers one pixel to the right
cdst+=xPitch2;
csrc++;
}
//Move down to the next row and all the way to the left
cdst+=nextRow2;
csrc+=nextSrcRow2;
}

// White Screen Fix by Soenke Dirksen ---Start 2
if (GXEndDraw_) (*GXEndDraw_)();
// White Screen Fix by Soenke Dirksen ---End 2


...

jim28 · 02 Oct 2004, 07:02 UTC — white screen
Hi I was unsuccessful. Downloaded everything yet cant get it to recompile properly, giving me trouble with the gx.h file... I would like to try it on HP, Can you post a link or email the exe it to me?
Thanks, Jim
whiteskreen@aol.com
jim28 wrote:Hi I was unsuccessful. Downloaded everything yet cant get it to recompile properly, giving me trouble with the gx.h file... I would like to try it on HP, Can you post a link or email the exe it to me?
Thanks, Jim
whiteskreen@aol.com


Had that, too and commented those 2 lines out in .h
<exe is on its way>
jim28 · 02 Oct 2004, 19:24 UTC — works great on both ipaq 4700 and toshiba e800 S.E
Thanks a bunch, runs perfect in wm2003se, now i need to figure out how to benchmark them. :lol:
Any idea if networking is fully enabled? they are showing ip addresses but unable to locate server.
thanks again -jim
FYI pocketduke3d is now out with similar white screen issue <works with se_vga>
jim28 · 02 Oct 2004, 20:50 UTC — benchmark results e800 SE/ Ipaq 4700
got it to benchmark properly in portrait mode only so far. here are the #s

e800 WM2003SE: 14.4; 14.3
14.6 with SE_vga uninstalled.

e800 WM2003SE w/ SE_Vga utility running in QVGA mode: 16

Ipaq 4700: 22.2; 22.3
how do i do this edit? can you post a link to the edited file you made please?
Or if someone could email the fixed file to me too please, it is webmaster@kynolin.com. Thank you.
Instead of adding those lines, just remove the conditional precompiler instructions as I've indicated below. Otherwise you will be retrieving the buffer twice each frame on SH3 and MIPS devices.

Code:

#ifndef _X86_
//This is the Game API specific code

register unsigned short *cdst;
register byte *csrc, *rowEnd2;
register int xPitch2=xPitch, nextRow2=nextRow, nextSrcRow2=nextSrcRow;


if (!pScreenBuf)
if (!VID_GetScreenBuf(0)) return;

cdst=pDrawStart;
csrc=vid.buffer;

while (csrc<colEnd) {
//Calculate the ending row pixel
rowEnd2=csrc+rowEnd;
while (csrc<rowEnd2) {
//The next line is what actually sets the color value of the display pixel
*cdst=(short)vid_curpal[*csrc];
//Increment our source and display buffer pointers one pixel to the right
cdst+=xPitch2;
csrc++;
}
//Move down to the next row and all the way to the left
cdst+=nextRow2;
csrc+=nextSrcRow2;
}

VID_ReleaseScreenBuf();

#else


I will be releasing a new build with some minor fixes when I can get a chance. The build is ready, but I have to strip a bunch of stuff out of the source code before I can release it (and of course I can't release the binary unless I also release the source). I'm not ready to release the OpenGL ES source code yet.

Dan East
Thanks, I just got my 4700 yesterday, and need to be able to show my friends what 624mhz can do for a pocket pc. >=)
Guest · 21 Oct 2004, 14:54 UTC — Hp4700 user
Would it be possible to send the fixed file to cbiro@wideopenwest.com please? Thank you in advance for your help!

Cj
yes, if someone can get even a crude compile that would work and post the link and or email us it would be very much appreciated. (webmaster@kynolin.com) thx
*EDIT* sorry I didnt check my email, thanks!!!*EDIT*
red2lucas · 29 Nov 2004, 06:47 UTC — and me too pleeeaaase!!
Hi there, just got an e800 myself. Would love for someone to please send me the new edited file to yourmum@swiftdsl.com.au

Thanks in advance
Mario Limbach · 29 Nov 2004, 07:09 UTC — Please send me the fixed file for our reviews and rankings
Hi Dan,

we are using Quake II as standard ppc benchmark in our pda-tests, reviews and rankings on www.xonio.com and www.chip.de (and mention it in ech review :-)). Now we have a serious problem with the white screen on the new vga-devices. It would be nice, if you could please send us the fixed file, because we would not like to switch to another benchmark.

mariolimbach@gmx.de
safeforever · 23 Jan 2005, 01:17 UTC — white screen problem
hey, ive got the same problem on my asus A730W, and id love it if someone could please send the fixed file to me at

jalanskipton@bigpond.com

any instructions would also be greatly appreciated.
thanks guys!
when can we expect the update?
qwerty12 · 14 Feb 2005, 14:27 UTC — Compiled Version
Can you email me the fixed version as the normal one does not work on my loox 720. Email is trippin1@gmail.com
If u do send me a compiled version; I'll give u an gmail invite (I have 50 left).
Thanks.
please could you email the file/fix to roryp@discovery.co.za

thanks a million
AlexItaly · 10 Mar 2005, 18:58 UTC — Help me please!
Hi everyone,:)
here one of the lucky possessor of Toshiba e800 - simply amazing device-
Unfortunatly I´m not an expert in editing source code of pocket videogames.
Can anyone explain me clearly the procedure to solve the white screen problem in quake?
Which file should be edited and how exactly. I repeat, I´m not an expert so I ask for comprehension;)

Thx a lot!
Alex (from Italy:)
AlexItaly · 10 Mar 2005, 19:01 UTC — email
I forgot my email: alexzive@yahoo.it
ciao!
Alex
I am having this problem with an X50v any help would be greatly appreciated an exe or some good explanations would be great!
dhartline@sbcglobal.net
TheBeast · 26 Apr 2005, 06:36 UTC — Toshiba e800
Hi there,

I noticed noone has posted the fixed exe up on the site, could you please email me the fixed exe aswell.
james@beastbox.org

Cheers
James
read more attentively the forum !!
there is a post it about this file !
8) you need a dog to help you to find the topic ??

:P :P :P :P
I must have missed something on the fix - I was able to build pocket quake just fine, but it now crashes hard on my 4700 - to the point where I have to hard reset the device and restore from backup (no biggy...).
Nha-Krul · 27 Jul 2005, 21:14 UTC — Fixed exe
Hi, i have one DELL Axim x50v and I have the white screen problem. Can you send me the fixed exe to solve this problem, because I don't have the files to make it by myself. Thanks a lot. My e-mail is nhakrul@ciudad.com.ar
hi there, I have the MDA compact VGA device. Quake has the white screen issue.
Please send me the fix :
djpremacy@hotmail.com or premacy@xs4all.nl

Thanks a million!

Regards,
Ruben
Hi there, I just got my X50v and really don't know much about it so if you could send me that fixed exe file that would be great!
brstephens@southern.edu
Thanks a lot! :)
Hi

I cant be bothered to read through the forums so can someone post me the updated file pls. I dont want to give out my email address for spam reasons so can you try and guess it and send me the file. Also can you do my dishes for me as the pile is getting quite big.

Also quake breaks at the ziggarat level but please dont try and fix this as I know noone read this forum or does any work on pquake anymore and its a fun way of making my pda crash.

Finally can someone port quake3 to run at full speed on my 200mhz? I can pack my pda with lots of ice cubes if only i could overclock it to 3ghz.
Has the file been put somewhere it can be downloaded??? A link would be real nice.
I have an hx4700 and the white screen problem - could I also get the file sent to me?

mickesjo(a)hotmail.com

Thanks in advance! :)
Sorry... found it.

For all users who are as confused as I - take a look at this post:

http://www.pocketmatrix.com/forums/viewtopic.php?t=20900