• 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 leak

  1. E

    SOLVED Debug mode memory leak when restarting game? Using the latest GameMaker version [2023.11.1.129] [Repeatable]

    So, as the title states I don't know if this counts as a memory leak as I'm a novice. I was using the debug mode and and using the "restart game" button in the debugger interface to test a few things in my game, but while I was doing that I opened the task manager as the debug mode graph looked...
  2. N

    GameMaker My game is leaking memory and I don't know why

    I've been working on a game in GMS2 for the past three years and recently I noticed the memory is leaking under certain conditions. I've spent the past two days trying everything I can to find this leak but so far I've come up with nothing. To be more specific, the memory consumption is...
  3. LuxArtz

    Memory Leak Problem

    I have a problem with the memory when creating buffers + ds_maps what happens is that I am making an AI in game maker and it is sending all the information from alarm 0. I really have a serious problem with the memory leak that has come from increasing from 100 to 500 MB of memory in the task...
  4. lunarcomplex

    Memory leak shown in Task Manager but not in GMS Debugger, any thoughts?

    On Windows... After about 24 seconds being in my main game room, task manager will eventually start showing my game eating up memory, about 100MB+ per second, regardless running it from GMS via F5 or on it's own after being built. However when running my game in Debug mode (F6) in GMS this will...
  5. RhyminGarFunkle

    SOLVED Help finding the memory leak in my script?

    Each time a room in my project is entered, there's a memory leak of about 1.5MB. After much hair-pulling, I narrowed it down to my script that loads .obj files as vertex buffers - changing it to return a basic two-triangle square vertex buffer completely eliminates the leak. I've scoured this...
  6. D

    Debug mode IDE lockup, memory leak, and workaround

    This issue has been a pest to me for quite some time now. I've complained about it various times on here. My large scale project overuses and abuses functions, methods, structs, and references. Also a lot of use of id instance variable also. The issue: While using debug mode with my project...
  7. U

    GML Array causes memory leak

    Hi! I have some strange situation here. A small preface. I have a function that is needed to calculate the coordinates of an adjacent hex. For this, I need an array that stores two sets of other arrays. In the process, I encountered the fact that the consumption of RAM began to grow...
  8. A

    Memory leak - like problem with matrix calculations? (3d)

    Hello I'm making a partially 3d game and I have an issue similar to a memory leak: by deactivating 3d models (flushing vertex batches and whatnot to prevent actual memory leaks) and re-activating them (just loading the model in a vertex buffer), performance gets slightly degraded. If you repeat...
  9. P

    GameMaker Memory leak when hovering the mouse on the running game in Debug mode

    This issue happen when i create an empty project and Debug the game to monitor memory usage, then keep hovering the mouse continuously during 1 minute and notice that memory spikes from 15MB to 20MB. It stops increasing if i stop hovering. It seems like memory leak in this case. (Not tested...
  10. X

    Functions Cause Memory Leak?

    I've created a set of functions inside a script, but using those functions seem to cause a memory leak. I saw a thread talking about this on the forum, but it was posted in October 2020, and I just found the leak now. I don't know if this helps, but here is my function inside of my script...
  11. R

    SOLVED ds_map_clear() not destroying sub-maps added through ds_map_add_map()?

    I was working on save&load and used tons maps under a parent map to store entries like instances and DS etc. At first, these maps were destroyed one by one when loading is finished, and I saw in the manual that ds_map_add_map() tags these sub-maps automatically and when the parent is cleared or...
  12. 31Nf4ChZ4H73N

    is this the correct way to avoid a memory leak when creating a local ds_list?

    I want to create a ds list fill it with a bunch of ds_list assigned to a local variable which have some data and then at the end clear the ds_list so that the I have the same memory used as it never happened. I have a test object which in the create event only creates a ds_list dsl_list =...
  13. E

    Every project I compile has a memory leak

    Hi, first time posting :) I've been working on a project for some time now (a Twitch Plays game which is running 24/7), and recently (about 1 month ago) I noticed that the PC's memory usage was growing until it completely froze. I've dealt with memory leaks a few times before, and this is not...
  14. Duckbob

    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...
  15. Scienitive

    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...
  16. ConstaChymic

    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...
  17. 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...
  18. MaxLos

    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] =...
  19. Kezarus

    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...
  20. king javo

    GameMaker 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...
Top