RE: [GD-General] longjmp for C++
Brought to you by:
vexxed72
From: Corrinne Y. <cor...@sp...> - 2002-01-09 21:12:34
|
-----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Daniel Vogel Sent: Wednesday, January 09, 2002 1:12 PM To: Thatcher Ulrich; Gam...@li... Subject: RE: [GD-General] longjmp for C++ What Secret Level did for the DreamCast version of Unreal Tournament was reloading the section of the executable that contains the global variables and resetting the heap for level changes. On PS2 and XBox we simply "reboot". Of course this is all console stuff ;) -- Rebooting is the type of behavior I have in mind (which is currently implemented by release and reload). I just wondered if anyone knows of something that simple on the PC. (Not a real reboot of course, just something that restores environment to a specifiable equally pristine state.) -- As for textures and all the device driver interface nastiness, it may be helpful for some degenerate situations to completely shutdown all of Direct X to do as clean a clear as possible. It is still not completely clean, but it really helps the device drivers to re-compact things like texture memory with a full rebuild of devices and reload of current used textures. For in between, there are a few DX calls that compact and reset, but not always very well. Of course, these degenerate situations don't arise until running lots and lots of resources for a very long time. |