Crystal Space
Welcome,
Guest
. Please
login
or
register
.
May 26, 2013, 07:28:28 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9224
Posts in
2230
Topics by
5390
Members
Latest Member:
Okvepkke6
Crystal Space
Crystal Space Projects
Project Discussion
Reloading maps
« previous
next »
Pages:
[
1
]
Author
Topic: Reloading maps (Read 3754 times)
mik
Newbie
Posts: 36
Reloading maps
«
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?
Logged
Vincent
Full Member
Posts: 191
Re: Reloading maps
«
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.
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...