cancel
Showing results for 
Search instead for 
Did you mean: 

what is nemagfx_stencil_buffer_mem?

amb
Associate III

I have a custom board using u599 and touchgfx, my LCD size is 640*480.I noticed there is a "nemagfx_stencil_buffer_mem" in my RAM,It takes 305K memory,It's really a lot memory ,because I only have 30K left.But on the other board,lcd size is 480*480,"nemagfx_stencil_buffer_mem" is not there.I wonder what use is this buffer,and why it came out. QQ20250425-124013.png

1 ACCEPTED SOLUTION

Accepted Solutions
GaetanGodart
ST Employee

Hello @amb ,

 

The nemagfx stencil buffer is used when drawing vector graphic.
If you want to get rid of this buffer, in STM32CubeMX, disable the vector rendering.

Then you can check that it is gone by looking if you call the function nema_vg_init that is allocating the memory.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

View solution in original post

1 REPLY 1
GaetanGodart
ST Employee

Hello @amb ,

 

The nemagfx stencil buffer is used when drawing vector graphic.
If you want to get rid of this buffer, in STM32CubeMX, disable the vector rendering.

Then you can check that it is gone by looking if you call the function nema_vg_init that is allocating the memory.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)