memory leak

  1. MaxLos

    GMS 2.3+ 2D array causing memory leak

    ^^Title, I have a 2d array whose values are being updated in the Step Event and it's causing a memory leak. The project was ported over from GMS 1.x and it was working fine, I know they made some updates to arrays in 2.3 so maybe that's causing the problem? I'm not sure. settings[0, 1] =...
  2. Kezarus

    GMS 2.3+ Memory Leak - 2D Array that stores another arrays

    If you have a 2d Array and stores another array inside it causes a memory leak. Just execute the code below in a Step Event a couple of times. It's that simple. @Rui Rosário, @FoxyOfJungle, @GMWolf, @kburkhart84, I found it. :bunny: @TsukaYuriko, @Nocturne, should I open a a Bug Report? Can...
  3. king javo

    GMS 2 Buffer Memory Usage

    Hi, I'm noticing when using buffer_delete() I'm not seeing the memory usage come down. For example, if I create a new buffer using buffer_create() the memory increases by let's say 20 MB. When I delete the buffer using buffer_delete() the memory really doesn't move. Then if I repeat this...
  4. U

    SOLVED About memory leak

    About memory leak I'm using two ds_grids of about 2 rows and 4 columns to build an inventory. So, just getting four items will slow down the game. Other than ds_grid, I made only that extent that the instance will be erased if you move the character or press the enter key in front of the item...
  5. Adry

    GMS 2 Memory Leak - Stack overflow (how to properly delete a list?)

    Greetings! I've been working on a system to house multiple dialogue triggers and to save them as they change. I finally believe I got it working-ish, (to save and load) - this is my process: I save a list, within my save function - ds_map_add_list(_map, "Dialogue_flags", global.dialogue_flags)...
  6. Fluury

    Performance decreases the more levels are generated/the longer the game is played, but it isn't a memory leak/ or instance count.

    Heya. The project I am working on uses procedural generation to generate it's levels. In said levels, NPCs and everything spawn. After the level is done, we wipe the current level setup, and create a new one over it. Sounds simple enough - this isn't a new concept. The problem I am running...
  7. M

    Help in identifying memory leak?

    Firstly, I also posted on Legacy Tech Support, not sure where this one belonged...! 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...
  8. 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()...
  9. 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...
  10. E

    GML What is causing memory leak?

    Hello, i made a simple server for my online game, and the task manager is showing it is slowly increasing memory usage, when i open the server the memory usage is about 18.000kb and after around 10 hours, the server reaches 200.000kb or more. There's always around 40 players online. All the...
  11. G

    Linux Ubuntu Memory Leak in Empty Project

    After a few hours of searching for a memory leak in our code, I discovered that an empty project running on Ubuntu shows a steady increase in memory use in the debugger. Memory usage constantly goes up by about 10 kb every 5 or 6 seconds. Can anybody else confirm this finding? This is on the...
  12. S

    GMS 2 path_delete not working 100%?

    I have a game that I am working on and recently started to play around with paths. I however, noticed that my game started to stutter over time and it just get worse and worse. I think I have narrowed down the issue to the path_delete function. At first I was creating paths in a list using...
  13. 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...
  14. 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...
  15. 3

    GMS 2 creating ds_list via script causes memory leak?

    When I create as ds_list and store it in a local variable in a script which returns this value does this cause a memory leak? example: script: createMyList var myList = ds_list_create(); return myList; objectList StepEvent if(mouse_check_button_pressed(mb_left)) { list = createmyList(); }
  16. 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)...
  17. Wile94

    GMS 1.4 Memory Leak Issue

    Hi there. I've been testing some coding with a platformer demo I've been doing recently. The physics works with a ds_grid holding values of WALL and PLATFORM to perform collisions and deal with autotiling. Then I made a BLOCK object that remains static until the player lands on top and falls...
  18. C

    Question - Code [SOLVED} Buffer / Surface confusion

    Not sure whether I should post here or whether Tech Support would be a better bet, but when I minimise a running project that only creates a buffer in memory when: if(!surface_exists(global.LevelSurface) ) indicates that the buffer has not been created yet. If I minimise and then restore the...
  19. Daniel Mallett

    GMS 2 I think i'm leaking

    I "think" I may have a memory leak. I "think" it may be caused by not destroying my ds lists and maps. However the data structures are created under a create event so should only be created one time and used many. How am I supposed to delete them when I want to be using them actively. I also...
  20. Logan Bevans

    "Infinite Terrain" memory problems

    Hi, iv has been working on a game with near infinite terrain in which I deactivate all of the objects except for the once in my view I'm having issues with my memory increasing whenever I explore from the main loading part it starts dropping fps. Iv thought it could have something to do with the...
Top