Advertisement

OS resources

Started by October 15, 2001 02:27 AM
0 comments, last by dadio 23 years, 4 months ago
My terrain program runs great on both win98 and win2k. The thing is, that on win98, it shows that the program runs with ~8mb of RAM, but in win2k, I get an incredible ~220mb. Does anyone know of such behaviour problems...? I don''t have any big data structure in the app. just a plain height map (from BMP file) and some mooving around... any ideas?
Hi,

Well, while 220MB seems to be a LOT, 8MB is in my eyes a bit too small. Which program determined that memory usage? Or do you use your own memory methods? I don't think that 8MB is realistic, neither is 220MB.

There are some nice, but expensive tools you could use, such as BoundsChecker. A more simple (and cheap) solution is to write your own memory allocation routines to keep track of all allocations done.

How long does it take to start up your program under win2k? Allocating 220MB under Windows 2000, at least if that memory is split up a bit into several chunks, would take some time I think. On my machine, allocating 1000 blocks of float pointers to 20000 floats each (totalling 80 MB) takes nearly a second, even in release builds.

I suggest memory allocation routines, they are just cool

Edited by - synopsis on October 15, 2001 3:55:11 PM

This topic is closed to new replies.

Advertisement