I don’t quite understand memory usage in java. When I start my application, I debug 3 pieces of info to figure out what are they REALLY representing :
Runtime.getRuntime().totalMemory() —> 31 MB
Runtime.getRuntime().freeMemory() —> 13 MB
Runtime.getRuntime().maxMemory() —> 66 MB
Now, in windows task manager my javaw process is consuming 244 MB of RAM?
My game is made in openGL by lwjgl. Am I right to suppose that what Runtime.getRuntime().totalMemory() gave me is amount of java objects that occupy memory, and all that part up to 244 MB are textures loaded with GL11.glGenTextures?