R
RaverockMediaLtd
Guest
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 way. The debugger shows that my http_request string which gets saved to the variable "request" is the problem. The "request" variable just keeps growing and growing and growing each time a new request is made. I've made sure to destroy any ds_maps as they are no longer needed so that isn't an issue but the request variable itself doesn't seem to reset to 0 by itself. I even tried to force it to reset to 0 once the request and processing is done but it ignores this. I.E whatever the last request number was ( 244 for example ) if I do request = 0; debugger will flash request = 0 for a second then immediately return to request = 255.
Is there a built in way to destroy the http_request / get's at the end of the ASYNC event once processing their returned data is done?
I'm a PHP / SQL scripter primary so the notion of being able to do API calls from within game maker legitimately made me excited...now I'm wondering if what I want to do is possible ( and If I'm just going about this wrong )
Thanks
Is there a built in way to destroy the http_request / get's at the end of the ASYNC event once processing their returned data is done?
I'm a PHP / SQL scripter primary so the notion of being able to do API calls from within game maker legitimately made me excited...now I'm wondering if what I want to do is possible ( and If I'm just going about this wrong )
Thanks