RE: [GD-General] longjmp for C++
Brought to you by:
vexxed72
From: Corrinne Y. <cor...@sp...> - 2002-01-10 19:57:30
|
-----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Gareth Lewin Sent: Thursday, January 10, 2002 1:22 PM To: cor...@sp...; Gam...@li... Subject: RE: [GD-General] longjmp for C++ Hi, Sorry to jump in so late, but couldn't you just run your game app again ? Split your app into 2, one for the menus, one for the game, and to restart you can have the game spawn the game again and then exit. ( Maybe has a sleep call at the start just to make sure your other game instance is dead ) -- Gareth, -- Way too much overhead for starting a new level. -- The other suggestion of only a 2nd thread would be smaller, but still unnecessary overhead. -- A simple release old level and restore new level works just fine. -- Just one app, just its thread and a few threads like rendering. -- And it manages to release very cleanly. -- And Release + Restore is really a preferable as implementation over having 2 executables, or even 2 threads. |