Skip to content
Snippets Groups Projects
Unverified Commit 81e08678 authored by Arthur Sonzogni's avatar Arthur Sonzogni Committed by GitHub
Browse files

Avoid making new allocation to clear the screen. (#420)

Previously, a new 2D vector was allocated for every new frame. This
caused a lot of temporary allocation to be made.

This patch modify "Screen::Clear" so that it do make a new allocation,
but clear the existing one instead.

Bug:https://github.com/ArthurSonzogni/FTXUI/issues/290#issuecomment-1153327251
parent 925a7578
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment