Quantcast
Channel: Answers for "How can code generate memory garbage without instantiating any memory?"
Browsing latest articles
Browse All 8 View Live

Answer by Pangamini

Can't tell from code, but you can find out easily by running your code in "deep profiler"

View Article



Answer by fjhamming_CleVR

Well. It seems you have a few other local variables: private Tile North, South, East, West, Below, Above; These are instances of the same class which recursively add instances of the same ints, floats...

View Article

Answer by Joris-V

Are you sure you are not creating a lot of Tile objects at runtime that reference to each other? This construction could possibly cause the memory leak. I would suggest you make the object IDisposable...

View Article

Answer by Bonfire-Boy

Having pored over that code for a while and come up with nothing, I wanted to make that time feel a little less wasted by pointing out that you have a few redundant calls to Mathf.Max in there (where...

View Article
Browsing latest articles
Browse All 8 View Live




Latest Images