06-13-2003, 10:17 AM
How do I do PCopy? I don't really want to use SWAP all the time in my program...
earn.
PCopy in UGL
|
06-13-2003, 10:17 AM
How do I do PCopy? I don't really want to use SWAP all the time in my program...
earn.
06-13-2003, 10:09 PM
Rel! I wanna find a newer copy of your library RelLib cause this one doesn't cover circles (I'm using 1.1) and I need circles damnit!
earn.
06-13-2003, 11:17 PM
circles are for wimps
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
06-14-2003, 12:40 AM
Quote:circles are for wimps agree. The perfect lib for me would be putsprite, putpixel, newbuffer, blitbuffer. lol
06-14-2003, 07:42 AM
ehh?
You can either create dc to use as a backbuffer or have several pages and do uglSetVisPage page page = (page + 1) mod PAGESALLOCATED uglSetWrkPage page
oship me and i will give you lots of guurrls and beeea
06-14-2003, 10:07 PM
Okay I like EVERY SINGLE THING about UGL so far! One problem, Blitz... When I uglClear my edit DC, it takes forever, making my program run too slow! What I do is I draw all my background DCs first. As the program runs, it does this:
- uglClear the edit DC for editting on... - uglPut the background onto the edit DC. - Redraw my objects and then uglPut them onto the edit DC. - uglPut the edit DC onto the video DC. Why does this take so long for it all to work? Is one of your UGL functions not meant to be run over and over in my program?
earn.
06-15-2003, 03:23 AM
your qb45.exe is broken..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
06-15-2003, 04:17 AM
Agamemnus, you're stupid!!!! But only IF stupid = awesome.in.spanish.or.something
Code: DECLARE SUB ExitProgram ()
earn.
06-15-2003, 09:00 AM
Well, that's not strange. Each time you clear that dc you're clearing 1.83 MB of memory. As if that wasn't bad enough, all of it is in EMS. Where you can only map 16 kb at a time and each map taking around 2000 clock cycles. Then you have to once again copy all that 1.83 MBs of mem to video ram which is 10 times slower then sysram and is split into 16-64kb banks which has to be mapped and each map taking quite sometime, and you're copying this from EMS. Get my point? For any resolution higher then 320x240x16 i'd use paging. Never use an EMS backbuffer, that defies the whole point of using a backbuffer.
Oh and if i were you i'd put each sprite in it's own bmp and load them with uglNewBMP. They way you're doing it now framengts memory. And be sure to check out archives in ugl. All the loaders load directly from archives as well. Btw, build 0.21 will have a custom library builder and sound.
oship me and i will give you lots of guurrls and beeea
|
« Next Oldest | Next Newest »
|