Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/view2d.c
| Show First 20 Lines • Show All 1,117 Lines • ▼ Show 20 Lines | void UI_view2d_zoom_cache_reset(void) | ||||
| * for threading. | * for threading. | ||||
| */ | */ | ||||
| if (G.is_rendering) { | if (G.is_rendering) { | ||||
| return; | return; | ||||
| } | } | ||||
| /* While scaling we can accumulate fonts at many sizes (~20 or so). | /* 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]. */ | * 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(); | BLF_cache_clear(); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name View2D Matrix Setup | /** \name View2D Matrix Setup | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 1,125 Lines • Show Last 20 Lines | |||||