Skip to main content
Associate III
April 25, 2025
Solved

what is nemagfx_stencil_buffer_mem?

  • April 25, 2025
  • 1 reply
  • 457 views

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

Best answer by GaetanGodart

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,

1 reply

GaetanGodart
GaetanGodartBest answer
Technical Moderator
April 28, 2025

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,

ambAuthor
Associate III
May 23, 2025

@GaetanGodart 

thanks