-
Enhancement
-
Resolution: Duplicate
-
P3
-
None
-
8
Provide a system property that can be set at start-up to log texture allocation and disposal.
Logs should show the number of live textures, the total number allocated, the number of pixels currently allocated in textures and the pixel size of the current allocation. For example:
prism.trackTextures: Allocated texture #5123 of size 600x600 (currently allocated 8.2M pixels in 40 textures)
prism.trackTextures: Freed texture of size 600x600 (currently allocated 7.9M pixels in 39 textures)
This will help us to diagnose memory problems in applications.
Keeping track of the total number will help us see when we are constantly allocating and freeing textures and need to consider caching.
Logs should show the number of live textures, the total number allocated, the number of pixels currently allocated in textures and the pixel size of the current allocation. For example:
prism.trackTextures: Allocated texture #5123 of size 600x600 (currently allocated 8.2M pixels in 40 textures)
prism.trackTextures: Freed texture of size 600x600 (currently allocated 7.9M pixels in 39 textures)
This will help us to diagnose memory problems in applications.
Keeping track of the total number will help us see when we are constantly allocating and freeing textures and need to consider caching.
- blocks
-
JDK-8102008 Need a unified Texture resource management system for Prism
-
- Resolved
-
- is blocked by
-
JDK-8100710 Need mechanism for PG nodes to know when they are no longer part of a scene graph
-
- Resolved
-