You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
948 B
32 lines
948 B
13 years ago
|
CPU usage:
|
||
|
----------
|
||
|
|
||
|
ObjLoader.load()
|
||
|
- ObjLoader.readLine()
|
||
|
|
||
|
HDRLoader.writeRGBE() // need faster RGBE8 -> RGB16F conversion
|
||
|
|
||
|
// OpenGL resource-intesive points
|
||
|
Renderer.renderQueue()
|
||
|
Renderer.setVertexAttrib()
|
||
|
Material.apply()
|
||
|
|
||
|
Memory usage:
|
||
|
-------------
|
||
|
- OBJLoader
|
||
|
Java's Scanner class allocates approx. 8 MB of memory
|
||
|
to load the teapot model. Either implement ObjLoader without Scanner
|
||
|
or create an import/export system!
|
||
|
|
||
|
- AWTLoader
|
||
|
Using AWT for loading images is slow and uses more memory
|
||
|
than a home-grown loader. Use DDS and TGA formats more.
|
||
|
|
||
|
- Shader.getUniforms
|
||
|
This method generates a collection to represent the Uniforms
|
||
|
in the shader and is used by Renderer.updateShaderUniforms()
|
||
|
Need a faster method to iterate & update uniforms in a shader.
|
||
|
|
||
|
- Material.apply
|
||
|
Same thing as above. Generates a Collection and then an Iterator for a HashMap.
|
||
|
First, consider if using a HashMap is neccessary..
|