Path: chuka.playstation.co.uk!chuka.playstation.co.uk!chuka.playstation.co.uk!not-for-mail From: George_Bain@Playstation.sony.com Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: high-res? Date: 9 Mar 1998 08:45:04 -0000 Organization: Sony Computer Entertainment Europe - 119.SS5 Lines: 91 Sender: news@chuka.playstation.co.uk Message-ID: <6e0a6g$ij31@emeka.playstation.co.uk> Reply-To: George_Bain@Playstation.sony.com NNTP-Posting-Host: emeka.playstation.co.uk From: George_Bain@Playstation.sony.com To: news@playstation.co.uk > > If you set the 'dfe' field of your DRAWENV structure to 1, that will > allow the GPU to draw into the scanlines currently being displayed. So > both the odd-numbered scanlines and the even-numbered scanlines will be > drawn, regardless of which are currently being shown. So when it comes > time to switch from one set of scanlines to another, if you haven't > finished creating the next game screen, then all that happens is that > the viewer will see both sets of scanlines for the current game screen, > instead of only one set. You'll still get your high-res display, just > with a slower frame rate. > > The disadvantage to setting the 'dfe' field is that since the > PlayStation is drawing into both sets of scanlines, the drawing > operation takes longer. In some cases, it may then take longer than > 1/60th second to complete, which would make running at 60 fps > impossible. If this is the case, setting the 'dfe' field to 1 should be > done only when you know you're not going to be running at 60 fps anyway. > > Mike Fulton @ SCEA DB db; DB *cdb; void InitGame( void ) { SetDefDrawEnv(&db[0].draw, 0, 0, 640, 512); SetDefDispEnv(&db[0].disp, 0, 0, 640, 512); setRECT(&db[0].disp.screen, 0, 18, 0, 256); db->draw.dfe = 0; db->draw.isbg = 1; }// end InitGame int main( void ) { InitGame(); while( !game_over ) { cdb = &db[0]; ClearOTag(cdb->ot, OTSIZE); // add primitives here DrawSync(0); VSync(0); PutDispEnv(&cdb->disp); PutDrawEnv(&cdb->draw); DrawOTag(cdb->ot); }// end while return(0); }// end main Hi there, This is a sample snip, it obviously isn't fully complete but should give you the idea. Note what Mike Fulton wrote above. Regards, George@SCEE Hi!!! I am looking for a PAL mode HI-RES sample. My problem is that setting the resolution in PAL mode 640 x 512 does not work. (640 x 480 works fine) Thanx.