I'm sure I must be missing something obvious, but I haven't found an answer from searching the manual, tutorials or forms.
You usually don't have to, are you concerned about memory management ?
Develop games in your browser. Powerful, performant & highly capable.
I'm loading data into two different arrays from two different CSV files. I had considered loading them both together into a single array, but I need to select random values from both meaning I'd have to add additional functions to split up the two randomised selections. This would be simple enough if the number of entries were fixed, but they aren't.
The data actually clear itself between different request, if it's what is concerning you.
I thought it would too (it being 'lastData' and all), but the previously loaded data remains and the lastData in added to the end.
Solved. The problem was with my second CSV file; I should have double checked it. Thanks for the help
Let's say a relatively large textfile is requested via ajax. Does it make sense to clear the data by loading some small dummy data into the ajax data by requesting it to free up memory (not sure about how browsers go about reclaiming the memory thats unused ("garbage collection"))? How does the memory used up by the ajax.lastdata influence performance, especially on mobile devices?