Crystal Space
Welcome, Guest. Please login or register.
November 27, 2015, 12:15:51 am

Login with username, password and session length
Search:     Advanced search
9100 Posts in 2101 Topics by 10537 Members
Latest Member: Teresakorek
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Projects
| |-+  Project Discussion
| | |-+  Reloading maps
« previous next »
Pages: [1] Print
Author Topic: Reloading maps  (Read 4911 times)
Posts: 36

View Profile Email
« on: March 26, 2009, 04:33:51 pm »

Hi all,

i have a doubt about how to load a map when i have already one loaded. I want to delete the first one (I don't need it anymore) and use the second one freeing the memory used by the old map. What is the best way to obtain this?
Full Member
Posts: 191

View Profile WWW
« Reply #1 on: May 18, 2009, 07:01:53 pm »

Hello !

  one way would be to load stuff you want to unload later in a distinct region (with 1.2.1/1.4)
or collection (with 1.4+) depending on the CS version you use, and call eg.
iRegion::DeleteAll() or iCollection::ReleaseAllObjects().
Another option would be to just use iEngine::DeleteAll(), but then you might
have to re-load stuff you already loaded earlier.
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.328 seconds with 17 queries.