Openbor pc VS Dreambor memory use
Posted: Tue Jan 12, 2021 5:26 pm
Lets look at ram uses Pc openbor Vs Dreambor dc
Pc openbor look at the ram used when it unloads a level
[6:07 PM] ian micheal: all base levels it still using 31846400 thats all known models loaded they never get freed at all
[6:08 PM] ian micheal: before loading the level on pc Used Ram: 31526912 Bytes after unloading the level Used Ram: 31846400 Bytes
[6:09 PM] ian micheal: did it unload anything not a dam thing
Loading and unloading the level it used more ram on pc and never free a thing
Got factor on how much kos is using sdl is using etc all the buffers being set up
Malloc which is wasteful etc etc not just about Dreambor here
Also read only files system all libs are baked into the bin file unlike windows
Dreamcast is a limited read only embedded system
This engine is made for a HD and unlimited ram
Both loading the exact same game check memory use
Openbor pc ram use on boot
Total Ram: 4294967295 Bytes
Free Ram: 1264779264 Bytes
Used Ram: 3612672 Bytes
Openbor pc memory use on shutdown
************ Shutting Down ************
OpenBOR v3.0 Build , Compile Date: Jan 26 2017
Presented by the OpenBOR Team.
http://www.chronocrash.com
OpenBOR is the open source continuation of Beats of Rage by Senile Team.
Special thanks to SEGA and SNK.
Total Ram: 4294967295 Bytes
Free Ram: 1259859968 Bytes
Used Ram: 31395840 Bytes
Drreambor dreamcast memory use on boot
Total Ram: 16777216 Bytes
Free Ram: 13533188 Bytes
Used Ram: 3244028 Bytes
Dreambor dreamcast memory use on shutdown
************ Shutting Down ************
OpenBOR v3.0 Build IMRBETA 6 81632, Compile Date: Sep 20 2020
Presented by the OpenBOR Team.
http://www.chronocrash.com
OpenBOR is the open source continuation of Beats of Rage by Senile Team.
Special thanks to SEGA and SNK.
Total Ram: 16777216 Bytes
Free Ram: 10186756 Bytes
Used Ram: 6590460 Bytes
Both on shutdown dont free any ram even thou they say they do
I run both watching debug and logs..
Dreamcast version uses heaps less ram to boot the same game
No errors here just how it works
PC
Dreambor memory use
Pc openbor look at the ram used when it unloads a level
Code: Select all
Level Loaded: 'data/levels/ffight1/stage1a.txt'
Total Ram: 4294967295 Bytes
Free Ram: 1234751488 Bytes
Used Ram: 31526912 Bytes
Total sprites mapped: 357
Level Unloading: 'data/levels/ffight1/stage1a.txt'
Total Ram: 4294967295 Bytes
Free Ram: 1264369664 Bytes
Used Ram: 31846400 Bytes
RAM Status:
Total Ram: 4294967295 Bytes
Free Ram: 1264369664 Bytes
Used Ram: 31846400 Bytes
[6:08 PM] ian micheal: before loading the level on pc Used Ram: 31526912 Bytes after unloading the level Used Ram: 31846400 Bytes
[6:09 PM] ian micheal: did it unload anything not a dam thing
Loading and unloading the level it used more ram on pc and never free a thing
Got factor on how much kos is using sdl is using etc all the buffers being set up
Malloc which is wasteful etc etc not just about Dreambor here
Also read only files system all libs are baked into the bin file unlike windows
Dreamcast is a limited read only embedded system
This engine is made for a HD and unlimited ram
Both loading the exact same game check memory use
Openbor pc ram use on boot
Total Ram: 4294967295 Bytes
Free Ram: 1264779264 Bytes
Used Ram: 3612672 Bytes
Openbor pc memory use on shutdown
************ Shutting Down ************
OpenBOR v3.0 Build , Compile Date: Jan 26 2017
Presented by the OpenBOR Team.
http://www.chronocrash.com
OpenBOR is the open source continuation of Beats of Rage by Senile Team.
Special thanks to SEGA and SNK.
Total Ram: 4294967295 Bytes
Free Ram: 1259859968 Bytes
Used Ram: 31395840 Bytes
Drreambor dreamcast memory use on boot
Total Ram: 16777216 Bytes
Free Ram: 13533188 Bytes
Used Ram: 3244028 Bytes
Dreambor dreamcast memory use on shutdown
************ Shutting Down ************
OpenBOR v3.0 Build IMRBETA 6 81632, Compile Date: Sep 20 2020
Presented by the OpenBOR Team.
http://www.chronocrash.com
OpenBOR is the open source continuation of Beats of Rage by Senile Team.
Special thanks to SEGA and SNK.
Total Ram: 16777216 Bytes
Free Ram: 10186756 Bytes
Used Ram: 6590460 Bytes
Both on shutdown dont free any ram even thou they say they do
I run both watching debug and logs..
Dreamcast version uses heaps less ram to boot the same game
No errors here just how it works
PC
Code: Select all
Total Ram: 4294967295 Bytes
Free Ram: 1264779264 Bytes
Used Ram: 3612672 Bytes
debug:nativeWidth, nativeHeight, bpp, Hz 1862, 1048, 24, 60
1 joystick(s) found!
OpenBoR v3.0 Build , Compile Date: Jan 26 2017
Game Selected: ./Paks/FIRST_FIGHT.pak
FileCaching System Init...... Enabled
Initializing video............
'data/video.txt' not found.
Initialized video............. 320x240 (Mode: 0, Depth: 8 Bit)
Loading menu.txt............. Done!
Loading fonts................ 1 2 3 4 Done!
Timer init................... Done!
Initialize Sound..............
Loading sprites.............. Done!
Loading level order.......... Done!
Loading model constants...... Done!
Loading script settings...... Done!
Loading scripts.............. Done!
Loading models...............
Cacheing 'Flash' from data/chars/misc/flash.txt
Cacheing 'Knifep' from data/chars/misc/knifep.txt
Cacheing 'Bombp' from data/chars/misc/bombp.txt
Cacheing 'Bombe' from data/chars/misc/bombe.txt
Cacheing 'Blue' from data/chars/misc/blue.txt
Cacheing 'Wave' from data/chars/misc/wave.txt
Cacheing 'Laser' from data/chars/misc/laser.txt
Cacheing 'Mainyu' from data/chars/Mainyu/Mainyu.txt
Cacheing 'Shado' from data/chars/Shado/Shado.txt
Cacheing 'Medikit' from data/chars/misc/medikit.txt
Cacheing 'Herbs' from data/chars/misc/herbs.txt
Cacheing '1up' from data/chars/misc/1up.txt
Cacheing 'Money' from data/chars/misc/money.txt
Cacheing 'Gold' from data/chars/misc/gold.txt
Cacheing 'Sapphire' from data/chars/misc/sapphire.txt
Cacheing 'Jewel' from data/chars/misc/jewel.txt
Cacheing 'Plate' from data/chars/misc/plate.txt
Cacheing 'Medal' from data/chars/misc/medal.txt
Cacheing 'Meat' from data/chars/misc/meat.txt
Cacheing 'Bomb' from data/chars/misc/bombp.txt
Cacheing 'Laser' from data/chars/misc/laser.txt
Cacheing 'Box' from data/chars/misc/box.txt
Cacheing 'Shelves' from data/chars/misc/shelves.txt
Cacheing 'Garbage' from data/chars/misc/garbage.txt
Cacheing 'Case' from data/chars/misc/case.txt
Cacheing 'Drum' from data/chars/misc/drum.txt
Cacheing 'Statue' from data/chars/misc/statue.txt
Cacheing 'Barrel' from data/chars/misc/barrel.txt
Cacheing 'nevor' from data/chars/nevor/nevor.txt
Cacheing 'Berok' from data/chars/Berok/Berok.txt
Cacheing 'Burok' from data/chars/Burok/Burok.txt
Cacheing 'Tabru' from data/chars/Tabru/Tabru.txt
Cacheing 'Ambi' from data/chars/ambi/ambi.txt
Cacheing 'Unki' from data/chars/Unki/Unki.txt
Cacheing 'depre' from data/chars/depre/depre.txt
Cacheing 'Nothing' from data/chars/nothing/nothing.txt
Cacheing 'Buba' from data/chars/Buba/Buba.txt
Cacheing 'Gobo' from data/chars/Gobo/Gobo.txt
Cacheing 'Tlok' from data/chars/Tlok/Tlok.txt
Cacheing 'Unki' from data/chars/Unki/Unki.txt
Cacheing 'Jeal' from data/chars/Jeal/Jeal.txt
Cacheing 'apat' from data/chars/apat/apat.txt
Cacheing 'Devo' from data/chars/Devo/Devo.txt
Cacheing 'Nort' from data/chars/Nort/Nort.txt
Cacheing 'dolg' from data/chars/dolg/dolg.txt
Cacheing 'Sten' from data/chars/Sten/Sten.txt
Cacheing 'Dorubal' from data/chars/dorubal/dorubal.txt
Cacheing 'Jeal' from data/chars/Jeal/Jeal.txt
Cacheing 'Nort' from data/chars/Nort/Nort.txt
Cacheing 'Vyen' from data/chars/Vyen/Vyen.txt
Cacheing 'Faer' from data/chars/faer/faer.txt
Cacheing 'Chabu' from data/chars/chabu/chabu.txt
Cacheing 'Gusam' from data/chars/gusam/gusam.txt
Cacheing 'Knife' from data/chars/misc/knife.txt
Cacheing 'Shot' from data/chars/misc/shot.txt
Cacheing 'rain' from data/chars/misc/rain.txt
Cacheing 'Blue' from data/chars/misc/blue.txt
Cacheing 'Diamond' from data/chars/diamond/diamond.txt
Cacheing 'Wave' from data/chars/misc/wave.txt
Loading 'Flash' from data/chars/misc/flash.txt
Loading 'KnifeP' from data/chars/misc/knifep.txt
WARNING: data/chars/misc/bombp.txt tries to load a nonnumeric value at shadow, where a number is expected!
erroneus string: none
Loading 'Bombp' from data/chars/misc/bombp.txt
WARNING: data/chars/misc/bombe.txt tries to load a nonnumeric value at shadow, where a number is expected!
erroneus string: none
Loading 'Bombe' from data/chars/misc/bombe.txt
WARNING: data/chars/misc/blue.txt tries to load a nonnumeric value at shadow, where a number is expected!
erroneus string: none
Loading 'Blue' from data/chars/misc/blue.txt
Loading 'Wave' from data/chars/misc/wave.txt
Loading 'Laser' from data/chars/misc/laser.txt
Command 'know' not understood in file 'data/chars/Mainyu/Mainyu.txt'!
sound_load_sample can't load sample from file 'data/sounds/hit01.wav'!
Loading 'Mainyu' from data/chars/Mainyu/Mainyu.txt
Command 'know' not understood in file 'data/chars/Shado/Shado.txt'!
sound_load_sample can't load sample from file 'data/sounds/hit01.wav'!
Loading 'Shado' from data/chars/Shado/Shado.txt
Loading models............... Done!
Object engine init........... Done!
Input init...................
1 joystick(s) found!
XInput Controller #1 - 6 axes, 11 buttons, 1 hat(s)
Done!
Create blending tables....... Done!
Save settings so far........ Done!
Level Loading: 'data/levels/ffight1/stage1a.txt'
Total Ram: 4294967295 Bytes
Free Ram: 1239040000 Bytes
Used Ram: 30097408 Bytes
Loading 'Shelves' from data/chars/misc/shelves.txt
Loading 'Plate' from data/chars/misc/plate.txt
Loading 'Case' from data/chars/misc/case.txt
Loading 'Sapphire' from data/chars/misc/sapphire.txt
Loading 'Medal' from data/chars/misc/medal.txt
Loading 'Medikit' from data/chars/misc/medikit.txt
Loading 'Herbs' from data/chars/misc/herbs.txt
Loading 'Nevor' from data/chars/nevor/nevor.txt
Loading 'Depre' from data/chars/depre/depre.txt
Loading 'Dolg' from data/chars/dolg/dolg.txt
Warning: Failed to create colourmap. Failed to load file 2
Loading 'Ambi' from data/chars/ambi/ambi.txt
Warning: command 'palette' is not available under 8bit mode
Loading 'Apat' from data/chars/apat/apat.txt
Warning: Failed to create colourmap. Failed to load file 2
Loading 'Sten' from data/chars/Sten/Sten.txt
Loading 'Tlok' from data/chars/Tlok/Tlok.txt
Loading 'Knife' from data/chars/misc/knife.txt
Loading 'Jeal' from data/chars/Jeal/Jeal.txt
Loading 'Tabru' from data/chars/Tabru/Tabru.txt
Level Loaded: 'data/levels/ffight1/stage1a.txt'
Total Ram: 4294967295 Bytes
Free Ram: 1234751488 Bytes
Used Ram: 31526912 Bytes
Total sprites mapped: 357
Level Unloading: 'data/levels/ffight1/stage1a.txt'
Total Ram: 4294967295 Bytes
Free Ram: 1264369664 Bytes
Used Ram: 31846400 Bytes
RAM Status:
Total Ram: 4294967295 Bytes
Free Ram: 1264369664 Bytes
Used Ram: 31846400 Bytes
************ Shutting Down ************
OpenBOR v3.0 Build , Compile Date: Jan 26 2017
Presented by the OpenBOR Team.
www.chronocrash.com
OpenBOR is the open source continuation of Beats of Rage by Senile Team.
Special thanks to SEGA and SNK.
Total Ram: 4294967295 Bytes
Free Ram: 1259859968 Bytes
Used Ram: 31395840 Bytes
Release level data...........
Done!
Release graphics data........ Done!
Release game data............
Unload 'Flash' ............Done.
Unload 'KnifeP' ............Done.
Unload 'Bombp' ............Done.
Unload 'Bombe' ............Done.
Unload 'Blue' ............Done.
Unload 'Wave' ............Done.
Unload 'Laser' ............Done.
Unload 'Mainyu' ............Done.
Unload 'Shado' ............Done.
Unload 'Shelves' ............Done.
Unload 'Plate' ............Done.
Unload 'Case' ............Done.
Unload 'Sapphire' ............Done.
Unload 'Medal' ............Done.
Unload 'Medikit' ............Done.
Unload 'Herbs' ............Done.
Unload 'Nevor' ............Done.
Unload 'Depre' ............Done.
Unload 'Dolg' ............Done.
Unload 'Ambi' ............Done.
Unload 'Apat' ............Done.
Unload 'Sten' ............Done.
Unload 'Tlok' ............Done.
Unload 'Jeal' ............Done.
Unload 'Knife' ............Done.
Unload 'Tabru' ............Done.
Release game data............ Done!
Release timer................ Done!
Release input hardware....... Done!
Release sound system......... Done!
Release FileCaching System... Done!
**************** Done *****************
OpenBOR v3.0 Build , Compile Date: Jan 26 2017
Presented by the OpenBOR Team.
www.chronocrash.com
OpenBOR is the open source continuation of Beats of Rage by Senile Team.
Special thanks to SEGA and SNK.
Dreambor memory use
Code: Select all
Error in dc\mem\sb.cpp:sb_WriteMem:465 -> Write to System Control Regs , not
mplemented , addr=5f74ec,data=1fffff | pc = 0x8C029AC0
maple: active drivers:
VMU Driver: Clock, LCD, MemoryCard
Mouse Driver: Mouse
Keyboard Driver: Keyboard
Controller Driver: Controller
DMA Buffer at ac047ae0
vid_set_mode: 640x480 NTSC
maple: attached devices:
A0: Dreamcast Controller (01000000: Controller)
A1: Visual Memory (0e000000: Clock, LCD, MemoryCard)
vid_set_mode: 640x480 NTSC
fs_iso9660: disc change detected
arch: calling atexit functions
arch: shutting down kernel
maple: final stats -- device count = 2, vbl_cntr = 10, dma_cntr = 10
vid_set_mode: 640x480 NTSC
--
KallistiOS Git revision 7a52bdf-dirty:
Thu Aug 20 08:48:36 EDT 2020
dogbox2@dogbox2-PC:/opt/toolchains/dc/kos
Error in dc\mem\sb.cpp:sb_WriteMem:465 -> Write to System Control Regs , not
mplemented , addr=5f74e4,data=1fffff | pc = 0x8C0EBE20
maple: active drivers:
Dreameye (Camera): Camera
Sound Input Peripheral: Microphone
PuruPuru (Vibration) Pack: JumpPack
VMU Driver: Clock, LCD, MemoryCard
Mouse Driver: Mouse
Keyboard Driver: Keyboard
Controller Driver: Controller
Lightgun: LightGun
DMA Buffer at ac3034c0
vid_set_mode: 640x480 VGA
maple: attached devices:
A0: Dreamcast Controller (01000000: Controller)
A1: Visual Memory (0e000000: Clock, LCD, MemoryCard)
Total Ram: 16777216 Bytes
Free Ram: 13537284 Bytes
Used Ram: 3239932 Bytes
Total Ram: 16777216 Bytes
Free Ram: 13533188 Bytes
Used Ram: 3244028 Bytes
OpenBoR v3.0 Build IMRBETA 6 81632, Compile Date: Sep 20 2020
Game Selected: bor.pak
FileCaching System Init...... fs_iso9660: disc change detected
(joliet level 3 extensions detected)
Disabled
Initializing video............
Reading video settings from 'data/video.txt'.
Initialized video............. 320x240 (Mode: 0, Depth: 16 Bit)
vid_set_mode: 320x240 VGA
Loading menu.txt............. Done!
Loading fonts................ 1 2 3 4 Done!
Timer init................... Done!
Initialize Sound..............
snd_init(): loading 3332 bytes into SPU RAM
snd_stream: alloc'd channels 0/1
Loading sprites.............. snd_stream_poll: chan0(0).pos = -1944751724 (8
57194)
Done!
Loading level order.......... Done!
Loading model constants...... Done!
Loading script settings...... Done!
Loading scripts.............. Done!
Loading models...............
Cacheing 'Flash' from data/chars/misc/flash.txt
Cacheing 'Knifep' from data/chars/misc/knifep.txt
Cacheing 'Bombp' from data/chars/misc/bombp.txt
Cacheing 'Bombe' from data/chars/misc/bombe.txt
Cacheing 'Blue' from data/chars/misc/blue.txt
Cacheing 'Wave' from data/chars/misc/wave.txt
Cacheing 'Laser' from data/chars/misc/laser.txt
Cacheing 'Mainyu' from data/chars/Mainyu/Mainyu.txt
Cacheing 'Shado' from data/chars/Shado/Shado.txt
Cacheing 'Medikit' from data/chars/misc/medikit.txt
Cacheing 'Herbs' from data/chars/misc/herbs.txt
Cacheing '1up' from data/chars/misc/1up.txt
Cacheing 'Money' from data/chars/misc/money.txt
Cacheing 'Gold' from data/chars/misc/gold.txt
Cacheing 'Sapphire' from data/chars/misc/sapphire.txt
Cacheing 'Jewel' from data/chars/misc/jewel.txt
Cacheing 'Plate' from data/chars/misc/plate.txt
Cacheing 'Medal' from data/chars/misc/medal.txt
Cacheing 'Meat' from data/chars/misc/meat.txt
Cacheing 'Bomb' from data/chars/misc/bombp.txt
Cacheing 'Laser' from data/chars/misc/laser.txt
Cacheing 'Box' from data/chars/misc/box.txt
Cacheing 'Shelves' from data/chars/misc/shelves.txt
Cacheing 'Garbage' from data/chars/misc/garbage.txt
Cacheing 'Case' from data/chars/misc/case.txt
Cacheing 'Drum' from data/chars/misc/drum.txt
Cacheing 'Statue' from data/chars/misc/statue.txt
Cacheing 'Barrel' from data/chars/misc/barrel.txt
Cacheing 'nevor' from data/chars/nevor/nevor.txt
Cacheing 'Berok' from data/chars/Berok/Berok.txt
Cacheing 'Burok' from data/chars/Burok/Burok.txt
Cacheing 'Tabru' from data/chars/Tabru/Tabru.txt
Cacheing 'Ambi' from data/chars/ambi/ambi.txt
Cacheing 'Unki' from data/chars/Unki/Unki.txt
Cacheing 'depre' from data/chars/depre/depre.txt
Cacheing 'Nothing' from data/chars/nothing/nothing.txt
Cacheing 'Buba' from data/chars/Buba/Buba.txt
Cacheing 'Gobo' from data/chars/Gobo/Gobo.txt
Cacheing 'Tlok' from data/chars/Tlok/Tlok.txt
Cacheing 'Unki' from data/chars/Unki/Unki.txt
Cacheing 'Jeal' from data/chars/Jeal/Jeal.txt
Cacheing 'apat' from data/chars/apat/apat.txt
Cacheing 'Devo' from data/chars/Devo/Devo.txt
Cacheing 'Nort' from data/chars/Nort/Nort.txt
Cacheing 'dolg' from data/chars/dolg/dolg.txt
Cacheing 'Sten' from data/chars/Sten/Sten.txt
Cacheing 'Dorubal' from data/chars/dorubal/dorubal.txt
Cacheing 'Jeal' from data/chars/Jeal/Jeal.txt
Cacheing 'Nort' from data/chars/Nort/Nort.txt
Cacheing 'Vyen' from data/chars/Vyen/Vyen.txt
Cacheing 'Faer' from data/chars/faer/faer.txt
Cacheing 'Chabu' from data/chars/chabu/chabu.txt
Cacheing 'Gusam' from data/chars/gusam/gusam.txt
Cacheing 'Knife' from data/chars/misc/knife.txt
Cacheing 'Shot' from data/chars/misc/shot.txt
Cacheing 'rain' from data/chars/misc/rain.txt
Cacheing 'Blue' from data/chars/misc/blue.txt
Cacheing 'Diamond' from data/chars/diamond/diamond.txt
Cacheing 'Wave' from data/chars/misc/wave.txt
Loading 'Flash' from data/chars/misc/flash.txt
Loading 'KnifeP' from data/chars/misc/knifep.txt
WARNING: data/chars/misc/bombp.txt tries to load a nonnumeric value at shadow,
here a number is expected!
erroneus string: none
Loading 'Bombp' from data/chars/misc/bombp.txt
WARNING: data/chars/misc/bombe.txt tries to load a nonnumeric value at shadow,
here a number is expected!
erroneus string: none
Loading 'Bombe' from data/chars/misc/bombe.txt
WARNING: data/chars/misc/blue.txt tries to load a nonnumeric value at shadow,
ere a number is expected!
erroneus string: none
Loading 'Blue' from data/chars/misc/blue.txt
Loading 'Wave' from data/chars/misc/wave.txt
Loading 'Laser' from data/chars/misc/laser.txt
Command 'know' not understood in file 'data/chars/Mainyu/Mainyu.txt'!
sound_load_sample can't load sample from file 'data/sounds/hit01.wav'!
Loading 'Mainyu' from data/chars/Mainyu/Mainyu.txt
Command 'know' not understood in file 'data/chars/Shado/Shado.txt'!
sound_load_sample can't load sample from file 'data/sounds/hit01.wav'!
Loading 'Shado' from data/chars/Shado/Shado.txt
Loading models............... Done!
Object engine init........... Done!
Input init................... Done!
Create blending tables....... Done!
Save settings so far........ Done!
Level Loading: 'data/levels/ffight1/stage1a.txt'
Total Ram: 16777216 Bytes
Free Ram: 10264580 Bytes
Used Ram: 6512636 Bytes
Loading 'Shelves' from data/chars/misc/shelves.txt
Loading 'Plate' from data/chars/misc/plate.txt
Loading 'Case' from data/chars/misc/case.txt
Loading 'Sapphire' from data/chars/misc/sapphire.txt
Loading 'Medal' from data/chars/misc/medal.txt
Loading 'Medikit' from data/chars/misc/medikit.txt
Loading 'Herbs' from data/chars/misc/herbs.txt
Loading 'Nevor' from data/chars/nevor/nevor.txt
Loading 'Depre' from data/chars/depre/depre.txt
Loading 'Dolg' from data/chars/dolg/dolg.txt
Warning: Failed to create colourmap. Failed to load file 2
Loading 'Ambi' from data/chars/ambi/ambi.txt
Loading 'Apat' from data/chars/apat/apat.txt
Warning: Failed to create colourmap. Failed to load file 2
Loading 'Sten' from data/chars/Sten/Sten.txt
Loading 'Tlok' from data/chars/Tlok/Tlok.txt
Loading 'Knife' from data/chars/misc/knife.txt
Loading 'Jeal' from data/chars/Jeal/Jeal.txt
Loading 'Tabru' from data/chars/Tabru/Tabru.txt
Level Loaded: 'data/levels/ffight1/stage1a.txt'
Total Ram: 16777216 Bytes
Free Ram: 9342980 Bytes
Used Ram: 7434236 Bytes
Total sprites mapped: 357