memory leak

  1. Duckbob

    GMS 2.3+ Unhandled Memory Leaking? (.exe compiled program)

    I found that the game compiled in version 2.3.3.437 has unhandled memory leak in the Windows task manager. In 2.3.2.426 it was normal. In versions 2.3.2.426 or lower, it works without any problem. It's just a problem with version 2.3.3.437 compiled programs. ( I've tried more than three times...
  2. Scienitive

    GMS 2.3+ Can't Avoid Memory Leak

    I'm trying to write a function that does the same thing with instance_place_list() but not with one object with an array of objects. Here is the function: function instance_place_list_ext(_x, _y, _array, _order, _returnarray) { var return_count = 0; var i = 0; repeat...
  3. ConstaChymic

    GMS 2.3+ Method() memory management?

    Helper functions around methods don't seem to mention needing to use delete on them or otherwise clean them up, but I'm still worried something like this ///@func from_user(buffer, width, height, userfunc) static from_user = function (bff, i_w, i_h, userfunc) { if ((i_w <= 0...
  4. A

    ds_grid_read() seems to always consume memory

    My game currently has a memory leak and will slowly crash. The following code is causing the leak, I've stiped down the code as much as possible to simplify the problem. I realize the code block below serves no functional purpose. I just want to understand it and why its consuming so much...
  5. 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] =...
  6. 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...
  7. 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...
  8. 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...
  9. 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)...
  10. 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...
  11. 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...
  12. 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()...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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(); }
  20. 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)...
Top