emicarra
Member
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 server program does, is send and receive data using buffers, i create and delete them instantly to send data, and according to the gms2 manual, the networking event automatically creates one buffer to access the received data and then automatically deletes it.
The server has 2 ds_lists and 1 ds_map to store some data from joining players, and when the player leaves, the data from that player is deleted using ds_list_delete and ds_map_delete.
I don't understand what can be causing the memory leak, since that's all the server does and as you can see i made sure to delete data from ds lists, maps, and buffers after no longer needed.
My only guess is that game maker is probably not deleting the buffer data after the server receives data from players in the networking event. Or am i doing something wrong? Thanks for your help
All the server program does, is send and receive data using buffers, i create and delete them instantly to send data, and according to the gms2 manual, the networking event automatically creates one buffer to access the received data and then automatically deletes it.
The server has 2 ds_lists and 1 ds_map to store some data from joining players, and when the player leaves, the data from that player is deleted using ds_list_delete and ds_map_delete.
I don't understand what can be causing the memory leak, since that's all the server does and as you can see i made sure to delete data from ds lists, maps, and buffers after no longer needed.
My only guess is that game maker is probably not deleting the buffer data after the server receives data from players in the networking event. Or am i doing something wrong? Thanks for your help