Skip to main content
Associate III
Solved

what is nemagfx_stencil_buffer_mem?

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

This topic has been closed for replies.
GaetanGodart
GaetanGodartBest answer
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 GodartSoftware engineer at ST (TouchGFX)

2 replies

GaetanGodart
GaetanGodartBest answer
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 GodartSoftware engineer at ST (TouchGFX)
ambAuthor
Associate III

@GaetanGodart 

thanks