A DESCRIPTION OF THE PROBLEM :
I use canvases to draw diagrams in my application. They are placed in TabPanes. At one time, there can be more than 20 tabs open. On monitors with high resolution, where much video memory is required, this may generate OutOfMemory exceptions.
It would help if the canvas would have a property to programatically release the memory resources.
I would use this each time the canvas tab is unselected (not visible). Then I would re-activate and re-paint the canvas when the tab is selected.
I use canvases to draw diagrams in my application. They are placed in TabPanes. At one time, there can be more than 20 tabs open. On monitors with high resolution, where much video memory is required, this may generate OutOfMemory exceptions.
It would help if the canvas would have a property to programatically release the memory resources.
I would use this each time the canvas tab is unselected (not visible). Then I would re-activate and re-paint the canvas when the tab is selected.
- duplicates
-
JDK-8304894 Memory usage optimization for Canvas
- Closed
-
JDK-8305654 JavaFX Canvas Memory Usage
- Closed
- relates to
-
JDK-8092801 [Canvas] Canvas buffers commands indefinitely when it isn't visible leading to Out of Memory Exception
- Resolved