Page 2 of 2
Re: Castlevania chronicles dx 16bit OBDCIMR Beta6
Posted: Wed Jul 17, 2019 11:20 pm
by Anthony817
Awesome man thanks so much for trying to get this amazing game working! Having amazing Castlevania homebrew games on DC has been a dream of mine for years!
Re: Castlevania chronicles dx 16bit OBDCIMR Beta6
Posted: Thu Jul 25, 2019 12:32 pm
by Ian Micheal
I have seen this game maps over 1200 sprites. Ive changed the delta buffer for video we have back about 800k more ram. Ive changed malloc in kos to trim small bins To load level 3 we need 4 more meg unlocking sprites can be done but fonts are sprites to. also unlocking backgrounds can be done.. but they will not load back up when the game firsts loads i have it down to 12 meg, from 14 meg last time still not enff yet. he uses new backrounds each level and sprites i debugged the music system since this uses not oggs but bor play files its working great no problem with music. Ogg files are return miss matched sizes in the buffer . So is the levels there is a problem with way malloc is working for this.
Re: Castlevania chronicles dx 16bit OBDCIMR Beta6
Posted: Thu Jul 25, 2019 12:58 pm
by Anthony817
Would using mono audio help with memory?
Re: Castlevania chronicles dx 16bit OBDCIMR Beta6
Posted: Thu Jul 25, 2019 4:28 pm
by Ian Micheal
Sound is flushing right and wav files thats working, It's streaming so it's fine, I deleted all sound file from the game and it still crashes level 3. just to be sure, even though it should not make a change but it has been a problem in the past with sdl, It seems to be malloc locking and not freeing chunks of memory because it has a threshold to be reached before freeing memory. Im debugging it. Buffer sizes do not match memory sizes do not match so i think it cant reach the threshold to free it even if it being called.. it's what i think it could be, i could be wrong.. I will keep digging.
Re: Castlevania chronicles dx 16bit OBDCIMR Beta6
Posted: Thu Jul 25, 2019 7:16 pm
by Ian Micheal
Old version when game loaded
New version 6.1 when game loaded
Dev log
Code: Select all
Old beta 6 dev log
KallistiOS Git revision v2.0.0-303-g5547ad7-dirty:
Wed Jul 3 19:39:32 EDT 2019
dogbox2@dogbox2-PC:/opt/toolchains/dc/kos
Total Ram: 16777216 Bytes
Free Ram: 13889540 Bytes < Notice how much ram in the old version>
Used Ram: 2887676 Bytes
Total Ram: 16777216 Bytes
Free Ram: 13885444 Bytes
Used Ram: 2891772 Bytes
This is on boot up before loading anything but the bin file
===================================================================================
Command 'subject_to_platfom' not understood in file 'data/chars/misc/items/pill4
.txt'!
Loading 'pill4' from data/chars/misc/items/pill4.txt
Level Loaded: 'data/levels/forgot2.txt'
Total Ram: 16777216 Bytes
Free Ram: 2789380 Bytes
Used Ram: 13987836 Bytes
Total sprites mapped: 1244
Level Unloading: 'data/levels/forgot2.txt'
Total Ram: 16777216 Bytes
Free Ram: 2637828 Bytes
Used Ram: 14139388 Bytes
Done.
Total Ram: 16777216 Bytes
Free Ram: 2637828 Bytes
Used Ram: 14139388 Bytes
Level Loading: 'data/levels/sim1c.txt'
Total Ram: 16777216 Bytes
Free Ram: 2637828 Bytes
Used Ram: 14139388 Bytes * this is game loaded*
Loading 'Plat02' from data/chars/misc/platform/plat02.txt
Requested sbrk_base 0x8d147000, was 0x8cf22000, diff 2248704 = 2.14453125mb
kernel panic: out of memory; about to run over kernel stack
==================================================================================
NEW MEMORY version
OpenBoR v3.0 Build IMRBETA 6.1, Compile Date: Jul 25 2019
Level Loading: 'data/levels/forgot2.txt'
Total Ram: 16777216 Bytes
Free Ram: 3948548 Bytes * Notice using less* More free when starting game
Used Ram: 12828668 Bytes Again this is game loaded
==================================================================================
Command 'subject_to_platfom' not understood in file 'data/chars/misc/items/pill4
.txt'!
Loading 'pill4' from data/chars/misc/items/pill4.txt
Level Loaded: 'data/levels/forgot2.txt'
Total Ram: 16777216 Bytes
Free Ram: 3608580 Bytes
Used Ram: 13168636 Bytes
Total sprites mapped: 1244
Level Unloading: 'data/levels/forgot2.txt'
Total Ram: 16777216 Bytes
Free Ram: 3457028 Bytes
Used Ram: 13320188 Bytes
Done.
Total Ram: 16777216 Bytes
Free Ram: 3457028 Bytes
Used Ram: 13320188 Bytes
Level Loading: 'data/levels/sim1c.txt'
Total Ram: 16777216 Bytes
Free Ram: 3457028 Bytes We have more ram but it still does not load
Used Ram: 13320188 Bytes
Loading 'Plat02' from data/chars/misc/platform/plat02.txt
Requested sbrk_base 0x8d07f000, was 0x8ce5a000, diff 2248704 = 2.14453125 ????? something is not right Even thou we have almost 2 meg more ram it says the same diffrence ???
kernel panic: out of memory; about to run over kernel stack
arch: aborting the system
Re: Castlevania chronicles dx 16bit OBDCIMR Beta6
Posted: Thu Jul 25, 2019 8:07 pm
by Anthony817
Interesting. So we have 2mb more ram saved in the new version yet it still crashes in the transition to level 3?
Maybe it needs more memory saved? I wonder what else could be trimmed down that you haven't already thought of? I am sure you must have thought of everything by now.