|
Post by quentinpsausages on Oct 14, 2023 20:21:20 GMT
Hi,
I'm making my first MPAGD game, which I am creating for the Spectrum 128.
My game currently has around 30 screens and the Memory Usage tool teels me my game size is about 20kb. In additoin I have 2 AY tunes taking up about 2kb. When I try to create additional screens, my game crashes, which I assume is due to running out of memory.
I understand that I would be hitting the limit for a 48k Speccy game, but I feel like there should be more memory available for a 128k game. How do I access and use the extra memory? Or am I wrong and this is as big as my game can be?
Thanks!Tom
|
|
|
Post by flopping on Oct 14, 2023 21:29:23 GMT
Hi, the space memory free are about 22k (in mode 48 or 128k), but you can use pages of 16k in mode 128k by asm code.
|
|
|
Post by quentinpsausages on Oct 14, 2023 22:16:53 GMT
Thanks, that's good to know. Can you provide any advice as to how to achieve this? Sorry, but I'm new to MPAGD!
|
|
|
Post by flopping on Oct 16, 2023 15:59:51 GMT
The MPAGD can use routines in ASM, but do not create them, you must know how to program in ASM and create a routine, which the MPAGD will then call at the moment you have set it, read the MPAGD instructions on this
|
|
|
Post by ramon on Oct 17, 2023 7:09:24 GMT
As soon as I can I will present an MPAGD Solutions project to increase the capacity of games in terms of graphic memory and sound. In the meantime, I recommend MPAGD Sound Mod that places your AY music tracks in a memory bank separate from the space you need for your screens, and also houses the AY effects in that bank whose capacity is 16k. With everything working you still have free memory for your game. It is always good to reflect on whether so many screens are necessary for your game to be fun.
|
|
|
Post by ramon on Oct 18, 2023 4:42:55 GMT
|
|
|
Post by quentinpsausages on Oct 21, 2023 7:45:58 GMT
Thanks all for your responses!
|
|