Jump to content


Freeing up RAM in DPC+


2 replies to this topic

#1 bjbest60 OFFLINE  


    Star Raider

  • 58 posts
  • Location:Space Cactus Canyon

Posted Thu Jan 19, 2017 10:33 AM

Hello everyone,


I'm relatively new to bB, but am developing a DPC+ game.  Upon compiling, my free RAM is 0, and any additional work with variables is halted because of this.  My code is messy, but contains a procedurally generated playfield and nine sprites.  I haven't yet used all the variables a-z.  (I'm up to about q right now.)


Are there general practices that would help free up RAM, such as fewer variables, fewer sprites, etc.?  I'm just not sure what I can free up in the standard RAM (and perhaps push into the stack?).


Thanks very much for any advice!

#2 bjbest60 OFFLINE  


    Star Raider

  • Topic Starter
  • 58 posts
  • Location:Space Cactus Canyon

Posted Thu Jan 19, 2017 12:02 PM

I'd utterly misidentified the issue.  The error arose from "Unable to open '2600basic_variable_redefs.h'", which was due to bad code on my end.  Sorry for the post.  Thanks.

#3 Lillapojkenpćön OFFLINE  


    Star Raider

  • 68 posts

Posted Tue Jan 24, 2017 1:45 AM

my free RAM is also 0, was that not the issue? My game has started to freeze randomly and sometimes resets to the titlescreen, I have no idea what's going on, but when I press the tilde key the word ram appears many times? :P

Also tagged with one or more of these keywords: ram

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users