wish i could code![]()
Well do not laugh to loud, you can easily let your game run (if the game has a high framerate) and load every new object/images/etc. in a seperate thread. (You should have enough memory space left offcourse to have both states in memory)
If you create them on the heap and return the pointers to the main thread, just set the pointers to the new objects, then let the second thread delete all the old stuff. The time you need to replace stuff and reset the level or whatever takes almost no time so it will probebly not be noticed.
although it is almost impossible as soon as your game takes to much mem space or is just to advanced that the framerate is low, it is very well possible. I have tried this with my game in progress Raze and Elementals and in both cases it worked. With Elementals the game now takes up to much mem space and has a 60 fps so it does not work anymore but for a lot of not so heavy games released in the homebrew it can benefit the loading times! You can also show a movie while loading stuff.
so do not laugh to quick and let your imagination be your help !
My products:
Boxy 2: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
3D PSP Tutorials: http://www.ghoti.nl/PSPtutorials.php
wish i could code![]()
instead of an animation, is it possible to load another file
with thread #2 to speed up the overall load time ?
It is never too late to learn
Yes it is possibly the best option to do I think.
I am not sure but I do not think so. The loading will be on the same bandwith of the CPU so if you use 90% to load up objects and 10% to show graphics it will be fine but when you use 50% to load objects in thread 1 and 50% to load objects in thread 2 the time they are loaded is the same as only one thread. (maybe even slower cuase of the thread switching but I am not sure if that will effect it.)
My products:
Boxy 2: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
3D PSP Tutorials: http://www.ghoti.nl/PSPtutorials.php
That explains it well.
It looks as though the resource you've unlocked is the time the CPU
usually spends doing not much more than waiting for Flash to RAM
to complete. A data transfer request from thread #2 would have the
exact same wait.
My idea for an opening animation is a 3d text sequence like
the Star Wars "in a galaxy,far,far away..." classic. It would only need a
font and a couple of low-res images (&, erm yeah,a bit of programming).
My products:
Boxy 2: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
3D PSP Tutorials: http://www.ghoti.nl/PSPtutorials.php
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks