Login  Register

Re: Graph Type Rendering Updates (Graph UI)

Posted by Sven Gothel on Mar 07, 2023; 8:23pm
URL: https://forum.jogamp.org/Graph-Type-Rendering-Updates-Graph-UI-tp4042173p4042304.html

Performance analysis and changes, done w/ 1st iteration.

Graph Performance: 1296 Glyphs processed in 10.25ms on Raspi 4b

Graph Perf Update: 1296 chars to Region per Frame:
-  RaspiPi4 10.25ms (regioned) + 3.4ms (draw)
-  PC 2.97ms (regioned) + 0.36ms (draw)

Performance update from commit 607eb99b9cad227dd7be6d149c6b6cf57d060c35
(Note: There I mentioned the total duration for 20 frames, not per frame)

regioned is the process where all single pre-computed OutlineShape instances per Glyph are processed to become one Region. This process includes our Font layouting and Region.addOutlineShape().
Region.addOutlineShape() itself performs the triangulation of the shapes, compounding of all vertices and pushing all data down to the VBO buffer, ready to be rendered. Hence, the crucial Graph hotspot.
... more in the blog