memory

  1. gkri

    Android Memory Games with picou picou

    My very first game made with GMS2 is live and I am very happy about it. I migrated from another technology and I am very happy for my decision! I can confirm that developing with GMS2 is not only faster, but also a lot easier. It is a collection of educational mini games that practice memory...
  2. T

    SOLVED Optimization: objects and instances (question)

    Hello! Are there any difference for game if I have (for example) 10 objects or 10 instanses of one object? For memory/performance/etc. I have found 2 ways to make a cutscene, and first is to create a new object for every cutscene, second is to create different instances of one object (it uses...
  3. Fluury

    Memory Usage and the amount of Instances.

    Heya! I have lately ran into an interesting "problem" which is making me pretty confused. The project I am working on has level generation, which is creating a lot of instances. Some levels are bigger than others, and thus are more prone to having more instances. One day I realized that the...
  4. M

    Destroy ds_grid / map / list, even if they are local?

    Hi There Just short question. It's not that clear in the GM Help. If i have a local ds_grid like this: var grid = ds_grid_create(...) Do I have to destroy it after use as well? Thanks a lot! kind regards mX273
  5. JapanGamer29

    GMS 2 Does destroying a data structure destroy data structures within it?

    The manual says that destroying a data structure removes all values that it contains, but does that include other data structures? If, for example, I have a stack of maps, does ds_stack_destroy() remove all those maps, too? My memory usage grows with every room_restart() so I'm trying to...
  6. M

    [SOLVED] Help in identifying memory leak?

    Hey guys, possibly dealing with my first memory leak ever here. C: drive space lost permanently everytime I launch my game. In Debug mode right at game start, the Graph starts going way up and hits the roof soon after the game has started. At the start of the game, I only have the randomize()...
  7. S

    Windows GMS2 - Need help with RAM usage by the program.

    Hello and thank you for taking your time to answer this question ! BASICALLY MY GMS:2 IS EATING WHOLE MY RAM My rig : ( LenovoT430 ) 4GB ram, intel-i5-3320M processor @2.60GHz boosted to 3.30GHz with the help of turboboost. ( I know it's weak but It hasn't been a problem for me unless I'm...
  8. Azenris

    GMS 2 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 );
  9. 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...
  10. C

    GMS 2 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...
  11. Schekhovtsov

    GMS 2 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 ###
  12. 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)...
  13. 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...
  14. 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...
  15. 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...
  16. LamePower448

    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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top