LavaLit
  Home   Forum   WIKI SVN DOWNLOADS Help Donations Login Register  
* *

Donations

Quarterly Goal: $90.00
Due Date: Sep 30
Total Receipts: $10.00
Below Goal: $80.00
Site Currency: USD
 11%
Quarterly Donations
Jul-18 mozenwrath... EUR10.00
Jul-1 LeeBrother USD10.00
Advertisement

Links

Advertisement
Pages: [1] 2 3   Go Down
  Print  
Author Topic: Request: Command to delete entities from RAM  (Read 2061 times)
0 Members and 1 Guest are viewing this topic.
DARK HAYABUSA
Sr. Member
****
Offline Offline

Posts: 456


Working in the shadows


WWW
« on: August 21, 2009, 03:08:58 AM »

Sorry but I need to ask if there are any command to RAM liver after a level, entities or panels wanted to eliminate levels completed.
And also need to know if the animated gif in openbor occupy RAM somehow I noticed that the mods will fall faster when they have bigger animated gif.
Logged

My strength comes from training not from some curse in my blood.
CE
Administrator
*****
Offline Offline

Posts: 1018


Working on Rage of the Streets v2


WWW
« Reply #1 on: August 21, 2009, 10:57:05 AM »

Animated GIFs do not occupy RAM if used via 'scene' command in levels.txt or via 'playgif' command within a level.
Logged

http://www.dreamcast-scene.com/index.php/Main/OpenBoRManual


How to mod:
1 Pick an interesting game: There are plenty of 8-bit/16-bit classics waiting for a remake
2 Rip your own sprites & stages
3 Use a custom palette: http://borrevolution.vg-network.com/tutorial.htm
4 Check your offsets: http://www.lavalit.com/index.php?topic=1099.0


Did you know?
Using void main()
{
playgif("data/my.gif", 0, -4, 1);
}

as spawnscript streams a GIF anim instead of loading it
Mr.Q®
The Godfather of Modding
*****
Offline Offline

Posts: 634



WWW
« Reply #2 on: August 21, 2009, 11:19:57 AM »

What about skipping the 'next' value on levels.txt? Does that affect RAM? I was wondering about not using the level complete screen at all, but would that affect the RAM cleanup?
Logged

Q (L) Reika
kaino
Newbie
*
Offline Offline

Posts: 16



« Reply #3 on: August 21, 2009, 11:35:12 AM »

yeah i was thinking the same do we always have to do a level completed screen does it affect the game if you dont use it
Logged

killin the games (making nothing but really good games(
MatMan
Sr. Member
****
Offline Offline

Posts: 325



« Reply #4 on: August 21, 2009, 12:26:43 PM »

I think being able to release/unload or un-cache entities via script or even at the end of stage feature is a rather important especially for low memory systems like the psp phat and DC.

I've asked this question before and didn't receive a reply and I've kinda looked at the code and was unable to see anything regarding this. So i'm guessing there isn't anything that can do this. Which will become a major headache for my mod.

Edit.

There is a free(handle) script feature but i don't believe that does what we would like it todo regarding this subject.
« Last Edit: August 21, 2009, 12:28:50 PM by MatMan » Logged

Damon Caskey
Administrator
*****
Offline Offline

Posts: 4294



WWW
« Reply #5 on: August 21, 2009, 01:47:43 PM »

It's been looked into, but isn't nearly as easy as it sounds to add. We haven't found a way yet that wouldn't seriously disrupt engine functionality.

DC
Logged

OpenBOR Wiki.

Coming Soon:
Fatal Fury Chronicals

DARK HAYABUSA
Sr. Member
****
Offline Offline

Posts: 456


Working in the shadows


WWW
« Reply #6 on: August 21, 2009, 10:19:53 PM »

Animated GIFs do not occupy RAM if used via 'scene' command in levels.txt or via 'playgif' command within a level.
Thanks for the response CE, but as that of ( 'playgif' command within a level) perhaps a command to reproduce existing animated gif in the middle of a level? Huh?
Logged

My strength comes from training not from some curse in my blood.
DARK HAYABUSA
Sr. Member
****
Offline Offline

Posts: 456


Working in the shadows


WWW
« Reply #7 on: August 21, 2009, 10:22:08 PM »

What about skipping the 'next' value on levels.txt? Does that affect RAM? I was wondering about not using the level complete screen at all, but would that affect the RAM cleanup?
In this respect according to my tests with Angel-0 NEXT command does nothing to RAM.
Logged

My strength comes from training not from some curse in my blood.
DARK HAYABUSA
Sr. Member
****
Offline Offline

Posts: 456


Working in the shadows


WWW
« Reply #8 on: August 21, 2009, 10:26:14 PM »

yeah i was thinking the same do we always have to do a level completed screen does it affect the game if you dont use it
According HANZO51 the OPENBOR is the basis of STREET OF RAGE Sega Genesis and I thought of the latest 16MEG cartridges and therefore this implies the lack of a command Cleaning of RAM.
Logged

My strength comes from training not from some curse in my blood.
DARK HAYABUSA
Sr. Member
****
Offline Offline

Posts: 456


Working in the shadows


WWW
« Reply #9 on: August 21, 2009, 10:33:42 PM »

I think being able to release/unload or un-cache entities via script or even at the end of stage feature is a rather important especially for low memory systems like the psp phat and DC.

I've asked this question before and didn't receive a reply and I've kinda looked at the code and was unable to see anything regarding this. So i'm guessing there isn't anything that can do this. Which will become a major headache for my mod.

Edit.

There is a free(handle) script feature but i don't believe that does what we would like it todo regarding this subject.
It is true what you say MatMan, but concideras which is technically not possible for any game engine does not have a command Cleaning of RAM, not because the PC has for example RAM 2GIGABITES going to occupy it in its entirety and then finish with Ultramega slow PC.
Logged

My strength comes from training not from some curse in my blood.
SX
Administrator
*****
Offline Offline

Posts: 2461



WWW
« Reply #10 on: August 25, 2009, 08:13:04 PM »

This has been implemented long ago unless I'm not understanding the request properly.....  Refer to this link here!
Logged

DARK HAYABUSA
Sr. Member
****
Offline Offline

Posts: 456


Working in the shadows


WWW
« Reply #11 on: August 26, 2009, 04:09:48 AM »

 Thanks for responding SX!
Bloodbane says he is not sure this works and in my case also did not evidence in this matter and given me a result but still continue to experiment with forms for this. Still if anyone knows how to do this would be bad not to notice and be grateful for that. (maybe it could be with SCRIPT) Huh?
Logged

My strength comes from training not from some curse in my blood.
SX
Administrator
*****
Offline Offline

Posts: 2461



WWW
« Reply #12 on: August 26, 2009, 10:27:55 AM »

I can tell you that it works perfectly.  BonusJZ uses it to the max in his Night Slashers X.  If he did not use it, then his mod would have never been playable in the PSP and he would of have to cripple it significantly to stay within memory.  This unloading feature after a level has completed allows you to have more flexibility from level to level with the sacrifice of load times.  BonusJZ feel free to chime in and state your experience with this feature.
Logged

Damon Caskey
Administrator
*****
Offline Offline

Posts: 4294



WWW
« Reply #13 on: August 26, 2009, 10:31:14 AM »

I was under the impression this command didn't work at all, and was put on the back burner.

Would be nice to find out I'm wrong.

DC
Logged

OpenBOR Wiki.

Coming Soon:
Fatal Fury Chronicals

Saint Antuan
Sr. Member
****
Offline Offline

Posts: 318



WWW
« Reply #14 on: August 26, 2009, 10:59:49 AM »

With that command (load ImAnEnemy 1) i unload entity from ram when level finish, but is only for load models in models.txt or works too with "know" entity in models.txt

Know declared entitys are in ram too? or only load entity are in ram and could be release from them with "load ImAnEnemy 1"

Thanks Smiley
Logged

Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Advertisement

Recent Topics

[July 31, 2010, 02:05:43 AM]

[July 31, 2010, 01:52:02 AM]

[July 31, 2010, 01:40:20 AM]

[July 31, 2010, 12:56:09 AM]

[July 31, 2010, 12:41:56 AM]

[July 31, 2010, 12:36:44 AM]

[July 31, 2010, 12:30:45 AM]

[July 31, 2010, 12:27:09 AM]

[July 31, 2010, 12:14:08 AM]

[July 30, 2010, 10:12:24 PM]

Online Status

Members
Stats
  • Total Posts: 67002
  • Total Topics: 4515
  • Online Today: 33
  • Online Ever: 117
  • (October 23, 2009, 03:29:26 PM)
Users Online
TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!
Page created in 0.252 seconds with 40 queries.

Google visited last this page July 29, 2010, 07:50:37 PM