If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will
not do your work for you!
Any porting requests must be made in Developmental Ideas .
ssj4goku128
Insane DCEmu
Posts: 290 https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked:
0
Been thanked:
0
Post
by ssj4goku128 » Fri Aug 13, 2004 12:20 am
I am unsure if I am doing this right, but I want to clear the screen and the vram completely, but I was wondering if the following method would work?
Code: Select all
free(vram_s); //I know one line, but hey.
or is there another way
"So I gotta be carefull, can't let tha evil of tha money trap me
so when ya see me #@#$%
ya better holla at me "
Tupac Shakur[1971-1996]
Makaveli[1996-????]
toastman
Iron Fist of Justice
Posts: 4933 Joined: Sat Nov 10, 2001 3:08 am
Location: New Orleans
Has thanked:
0
Been thanked:
0
Contact:
Post
by toastman » Fri Aug 13, 2004 12:32 am
memset(vram_s, 0, SCREEN_WIDTH * SCREEN_HEIGHT *
;
Will also work.
There's probably a few other ways as well. Like using store queues or some such that will net you some better performance.
Isn't there a specific function that does this though?
No signature.
Rand Linden
bleemcast! Creator
Posts: 882 Joined: Wed Oct 17, 2001 7:44 pm
Location: Los Angeles, CA
Has thanked:
0
Been thanked:
0
Contact:
Post
by Rand Linden » Fri Aug 13, 2004 2:40 am
The only time you'll "need" to clear the screen is when writing directly to the frame buffer -- and only if you're not using the 3D hardware.
Rand.
BlackAura
DC Developer
Posts: 9951 Joined: Sun Dec 30, 2001 9:02 am
Has thanked:
0
Been thanked:
1 time
Post
by BlackAura » Fri Aug 13, 2004 4:20 am
If you want to clear everything in vram, just do this:
That simply erases the contents of vram, including the frame buffer, and anything else that's stored there.
Just think if that's really what you want to do. Chances are it isn't.
Rand Linden
bleemcast! Creator
Posts: 882 Joined: Wed Oct 17, 2001 7:44 pm
Location: Los Angeles, CA
Has thanked:
0
Been thanked:
0
Contact:
Post
by Rand Linden » Fri Aug 13, 2004 5:42 am
If all you want to do is clear the screen, you can do it quickly by rendering without sending any polygons down.
Rand.
ssj4goku128
Insane DCEmu
Posts: 290 Joined: Wed Oct 17, 2001 7:44 pm
Has thanked:
0
Been thanked:
0
Post
by ssj4goku128 » Tue Aug 17, 2004 5:15 pm
actually, that is what I wanted to do[just for exitting completely]. Thanks
"So I gotta be carefull, can't let tha evil of tha money trap me
so when ya see me #@#$%
ya better holla at me "
Tupac Shakur[1971-1996]
Makaveli[1996-????]
Rand Linden
bleemcast! Creator
Posts: 882 Joined: Wed Oct 17, 2001 7:44 pm
Location: Los Angeles, CA
Has thanked:
0
Been thanked:
0
Contact:
Post
by Rand Linden » Tue Aug 17, 2004 5:42 pm
That's what I figured you were doing
Hence the "nice, fast, easy" solution.
Best,
Rand.