diff options
author | mano-wii <germano.costa@ig.com.br> | 2020-02-14 17:25:41 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2020-02-14 17:25:41 +0300 |
commit | a21f5ec56245f7f1fbede4aa3c140a582c3a6a1b (patch) | |
tree | c648f2d534be9e256930fae0ceb52378fd38cc94 /source/blender/editors/interface | |
parent | d6d44ccc7786e36d9453a8e24cdc89f159bdd4ab (diff) |
Fix T73763: Laggy with nodes Editor + International Fonts
Two main reasons for the lag:
- Allocation of memory with transfer to GPU.
- BLF_cache_clear();
The memory allocation seems to be unnecessary, so I removed it.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D6837
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 517d8ca51a3..3ee4d6a085e 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -1123,7 +1123,8 @@ void UI_view2d_zoom_cache_reset(void) /* While scaling we can accumulate fonts at many sizes (~20 or so). * Not an issue with embedded font, but can use over 500Mb with i18n ones! See [#38244]. */ - /* note: only some views draw text, we could check for this case to avoid clearning cache */ + /* note: This can be very bad for performance. + * Only some views draw text, we could check for this case to avoid clearning cache. */ BLF_cache_clear(); } |