• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

memory

  1. Azenris

    GameMaker surface_free

    Should surface_free still be called even if the surface_exists returns false. Like, is there internal meta data that GM uses and still needs freeing? if ( surface_exists( surface ) ) surface_free( surface ); or just always delete surface_free( surface );
  2. S

    [Solved] When do arrays cause memory leaks?

    I'm currently working on a project that, according to the debugger has a gradual memory increase/leak, that's not too much of a concern until about 10 minutes into play. I have made sure that all ds_ data structures, surfaces etc are destroyed, and I'm under the impression that it has something...
  3. C

    GameMaker Will this cause a memory leak?

    Hi Guys, Help me clear something up, I am using a script to find the nearest object, However I noticed when called it does a DS_grid_create. now usually this may not cause an Issue but im calling the thing ALOT! I take it that this thing firing off every frame is NOT good!? its not major...
  4. S

    GameMaker FATAL ERROR. Memory allocation failed

    Hello. Can you tell me what caused the error on Android? ### FATAL ERROR in action number 1 of Create Event for object ob_achievement Memory allocation failed Attempting to allocate 16777216 bytes ###
  5. Joh

    How much sprite_add can be handled?

    Hi, Just started working with external/run-time generated assets and apparently GM is not a fan, since it throws them all on different texture pages. I've tried being councious around it, load only a small portion of sprites. based on what is needed. I unload (sprite_delete and sprite_flush)...
  6. X

    Memory allocation failed, can anyone explain the problem?

    ___ ############################################################################################ FATAL ERROR in action number 1 of Alarm Event for alarm 0 for object obj_gen_xs: Memory allocation failed: Attempting to allocate 2097672 bytes at gml_Object_obj_gen_xs_Alarm_0...
  7. J

    GML There must be a more memory efficient way to do this

    I am currently working on the menu for my game and am using Friendly Cosmonaut's code. I decided that as well as a pause menu, there should also be menu in the title screen. Only issue is that as well as a separate main menu array, I also need another array for ever time you press back since I...
  8. Gamerev147

    Graphics Using Adobe After Effects for Game Maker Animations

    I just recently got Adobe After Effects because of the power it has to animate literally anything. I had planned on using it to animate my sprites for Game Maker, however I ran into a few issues: My animations can be rendered as a PNG or JPEG sequence, but there are over 200+ images after...
  9. L

    GML Questions About ds_lists

    I have a projectile penetration mechanic in my game and I currently use ds_lists in each projectile to store identifiers of each object it collided with so it doesn't trigger more than once. I currently do this... # Create Event penetrated_objects = ds_list_create(); # Collision Event if...
  10. B

    Android Random crashes with the same reason

    Hello! My game has more that 200k downloads for now. Crashlitycs show me the same error in different places of the code. It happends in during create event of different objects at any moment of the game. Right after start or at any other moment. Here is the text of the error: E/GML < FATAL...
  11. L

    iOS A simple Presentation style app crashing on iPad Air

    Hello, I have been trying to make a simple Presentation style app for iOS, targeted at iPad Air. It contains several 2048 x 1536 sized PNGs, for the lack of time. I have made one room, containing a couple of objects, one as the relevant image as sprite, and a couple more as buttons for...
  12. R

    http_request causes memory leak ( probably my fault )

    I'm using http_request for account logins from GMS2 and http_get to poll my SQL database for character locations, equipped items, etc. The database gets http_get'ed every alarm[0] = 30 ( twice a second ). I've adjusted this to once per second but noticed that my RAM gets utterly pummeled this...
  13. L

    Sound_delete causing game to crash?

    Dear all, My project is a top down shooter that involves loading and unloading external sounds whilst driving a car. Sometimes, but not always, the game freezes and crashes without a fatal error when I exit a vehicle. Usually, the looping song stops, but I would occasionally notice that the...
  14. 2

    DS Grid vs 2d Array: Speed and 4 other Questions

    1. Which is faster a DS grid or 2d array? 2. Which are local or global? 3. Which need to be destroyed before destroying the object that made them, to free up memory? 4. Which are persistent/nonpersistent? 5. Which take more memory?
  15. S

    Windows Question About Memory Leaks

    Hello! So, I'm closing in on the final stages of my game, and I'm starting to notice that occasionally after testing it for a long time it will randomly freeze up (With music still playing.) I have all my objects set to destroy themselves on the room end event so I thought my bases were...
  16. D

    GML [SOLVED - Workaround] Savegame System has strange side effect on Event Listeners

    Hi, I implemented a Savegame System where I can configure for each object what kind of data I want to store without coding it for everyone... The code for the Saving and Loading is currently implemented like this: (still work in progress but works already in some cases) This system was...
  17. PrismaticRealms

    Memroid by Prismatic Realms (Classic color sequence recall puzzle game with a spin!)

    A new game by Prismatic Realms, Inc. Available now on the App Store and Google Play. Description Memroid is a modern take on classic watch-the-color-sequence-and-repeat style of games with a (literal) spin! Quick to pick up and play, and so mesmerizing that you’ll want to play it again and...
  18. FlatulenzaFiamm

    GML Visual Memory...

    Hey everyone! Now I'm kinda SICK of memory thing, it's the 4th time I try to make a Tech Demo (Not a full game), only because I reach the same damn point. Lack of Memory! I've done everything! Putting my sprites in sprite sheets, reducing at minimum the quantity of objects, nothing leads to a...
  19. FlatulenzaFiamm

    GML Visual Some questions which I need an answer...

    Hello everyone! Mind if I ask to the community some explanations? 1- What are all the things that occupy memory inside in Game Maker? (ex: sprites and objects) 2- There is a way I can keep the same origin spot as before after using the NO CROPPING tool? 3- Have you got any tips on how to occupy...
  20. L

    GML How can I Stop Rewriting the Same Memory Location in This Code?

    Hello, I'm trying to create a DS map that uses instance IDs for its keys and a 1D array for its values. The problem I'm encountering is that I don't know how to make each 1D array refer to a different location in memory. When I run the code I've included below, GameMaker just rewrites the same...
Top