Lidar_AI_Solution icon indicating copy to clipboard operation
Lidar_AI_Solution copied to clipboard

cuOSD stb font backend memory too big

Open zxpshadow opened this issue 1 year ago • 5 comments

In order to perform asynchronous operations using multiple contexts, it was found that the OSD physical memory was heavily occupied. However, it was found that the backend of the font was heavily occupied, mainly due to measurement_ Text is occupied, so could you please help confirm

  1. Does asynchronous operation require multiple contexts

  2. Can multiple contexts share font backend

  3. Inaccurate measurement of font backend STB font (font set to 10, return height is 12)

zxpshadow avatar Oct 30 '23 02:10 zxpshadow

thanks, Keep On Waiting

zxpshadow avatar Oct 31 '23 05:10 zxpshadow

it was found that the OSD physical memory was heavily occupied -> Could you expand on this?

hopef avatar Nov 01 '23 05:11 hopef

Inaccurate measurement of font backend STB font (font set to 10, return height is 12) -> The measurement function is designed to return the size of the area needed for the rendering. It may include the background area(like a filled background), not just text.

hopef avatar Nov 01 '23 05:11 hopef

Inaccurate measurement of font backend STB font (font set to 10, return height is 12) -> The measurement function is designed to return the size of the area needed for the rendering. It may include the background area(like a filled background), not just text.

pic 1 54ef69ce5b49e25a7f84babbaee2349 pic 2 4dcb9a04cc737bfc332a308c2510552

Sorry for the delay in other matters last week and not responding in a timely manner。 pic 1 shows the actual drawn font height of approximately 19 pixels pic 2 shows that the font height returned by cuosd_measure_text is 10 pixels My understanding is cuosd_ Measure_ Text returns the font height occupied by the drawing

zxpshadow avatar Nov 13 '23 05:11 zxpshadow

thanks, Keep On Waiting

zxpshadow avatar Nov 21 '23 04:11 zxpshadow