From: | |
Date: | 14 Feb 2001 at 02:06:03 |
Subject: | Re: chip memory defragmentation |
Czesc William!
Dnia 13-Feb-01, William Robinson napisa�:
> i have installed MuGuardianAngel and SegTracker (& MuForce, of course),
> after trying enforcer and not liking the aftertaste it left.
MuGA in my scripts requires Sushi...
> so, i run my program for the first time (remember, the simple double
> buffer one) and it's all fine, the little graphical memory watcher thing
> that comes with poolmem looks ok, avail in shell says i have plenty of
> memory left. everything is fine after it... maybe i have a little less
> chip RAM than before, but i can live with that. no MuGuardianAngel hits.
No. I compiled your source code in SAS/C (after changing to ANSI C, C++ has
too many errors) and I recived two MuGA hits.
> then i run it for the second time and my chip ram gets totally
> defragmente; avail and the workbench bar say that i have about 1600k
> left, but the largest chunk is about 30/40k!
Change line:
RectFill(gaRP,0,0,SCREENWIDTH,SCREENHEIGHT);
to
RectFill(gaRP,0,0,SCREENWIDTH-1,SCREENHEIGHT-1);
or to... nothing (bitmap was cleared by BltClear() couple lines above!)...
and everything will be fine. Your program rendered outside a screen bitmap...
I really would like see that you will use modern double buffering methods ;).
You have A500 with AmigaOS v1.3 or similar? ;)
Regards!
Przemyslaw 'SENSEI' Gruchala
code/gfx2d/gfx3d/webmaster
Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982186124/
---------------------------------------------------------------------_->