No, it’s Ok, why sorry. Useful discussion is always, well, useful.
I read somewhere that Alt+M (combine vertices) produces totblocks. I have used this extensively in my modelling of the game.
I use version 2.78 in Linux and tested on latest version (dont remember which one, but I installed it last month = February 2018) in Windows.
From my experience =
Just pressing play on the Startup file cube, produces a totBlock = 16, both in Linux and Windows
The level backgrounds produce about 100.
Spawning the player warrior produces about 84. This is modelled, rigged, and animated through Python (not stored animations).
Spawning a skeleton produces another 80 something. This is also modelled, rigged and animated. Very similar to the warrior, but
a different mesh and driven by AI code instead of control inputs. Otherwise it is the same.
Now, leaving the game running for 45 minutes does not significantly increase totBlocks. Running the game for 1-3 minutes produces
284 totBlocks, while leaving it running for 45 minutes produces 334.
I do not have “object leaks”. Printing the size of scene.objects[ ] throughout the test, prints a steady number.
(I had a leak once of projectiles not getting removed and this slowed the game down after a while, but fixed it).
Restarting scene does not seem to “cure” tot blocks.
Loading from file does not seem to “cure” tot blocks. I was hoping to use this when changing levels or returning to main menu,
but unfortunately it does not work. This is important because I was counting on it, but unfortunately it does not seem to work.
Perhaps a workaround for the Blender Foundation would be to shut down the player and restart it when “Load game from file”,
so that a new process is created, so that the memory leaks are cleared with by Windows.
Perhaps I should suggest the above in the Blender Foundation development team ?
Anyway, I understand we are in uncharted territory. I plan to experiment with my game (delete various parts of it and see how they
affect totBlocks). I am good at narrowing such things down and hopefully will come up with something.