profiling points 948 B

1234567891011121314151617181920212223242526272829303132
  1. CPU usage:
  2. ----------
  3. ObjLoader.load()
  4. - ObjLoader.readLine()
  5. HDRLoader.writeRGBE() // need faster RGBE8 -> RGB16F conversion
  6. // OpenGL resource-intesive points
  7. Renderer.renderQueue()
  8. Renderer.setVertexAttrib()
  9. Material.apply()
  10. Memory usage:
  11. -------------
  12. - OBJLoader
  13. Java's Scanner class allocates approx. 8 MB of memory
  14. to load the teapot model. Either implement ObjLoader without Scanner
  15. or create an import/export system!
  16. - AWTLoader
  17. Using AWT for loading images is slow and uses more memory
  18. than a home-grown loader. Use DDS and TGA formats more.
  19. - Shader.getUniforms
  20. This method generates a collection to represent the Uniforms
  21. in the shader and is used by Renderer.updateShaderUniforms()
  22. Need a faster method to iterate & update uniforms in a shader.
  23. - Material.apply
  24. Same thing as above. Generates a Collection and then an Iterator for a HashMap.
  25. First, consider if using a HashMap is neccessary..