| 1115 | DotNet::RequestScriptReload(); |
| 1116 | } |
| 1117 | |
| 1118 | // A small budget avoids a hitch while cold thumbnails fill in a few per frame. |
| 1119 | CThumbnailManager::Get().ProcessRenderQueue(); |
| 1120 | |
| 1121 | MaterialCompiles.Tick(); |
| 1122 | ParticleCompiles.Tick(); |
| 1123 | ImpostorBaker.Tick(); |
| 1124 | } |
| 1125 | |
| 1126 | void FEditorUI::BakeFoliageImpostors() |
| 1127 | { |
| 1128 | if (WorldEditorTool != nullptr && WorldEditorTool->GetWorld() != nullptr) |
| 1129 | { |
| 1130 | ImpostorBaker.EnqueueFoliage(*WorldEditorTool->GetWorld()); |
| 1131 | } |
| 1132 | } |
| 1133 | |
| 1134 | void FEditorUI::OnEndFrame(const FUpdateContext& UpdateContext) |
| 1135 | { |
| 1136 | LUMINA_PROFILE_SCOPE(); |
| 1137 | |
| 1138 | MovieCapture::Tick(); |
| 1139 | |
| 1140 | for (FEditorTool* Tool : EditorTools) |
| 1141 | { |
| 1142 | Tool->EndFrame(); |
| 1143 | } |
| 1144 | } |
| 1145 | |
| 1146 | double FEditorUI::GetToolWorldUpdateInterval(const CWorld* ToolWorld, bool bFocused) const |
| 1147 | { |
| 1148 | // Focused means the last tool with a world, since a material's node graph edits still want a live preview. |
| 1149 | if (bFocused || ToolWorld == nullptr) |
| 1150 | { |
| 1151 | return 0.0; |
| 1152 | } |
| 1153 | |
| 1154 | // A Game or Simulation world is PIE, and throttling it would stutter the thing being played. |
| 1155 | if (ToolWorld->GetWorldType() != EWorldType::Editor) |
| 1156 | { |
| 1157 | return 0.0; |
| 1158 | } |
| 1159 | |
| 1160 | const int32 BackgroundFPS = GetDefault<CEditorSettings>()->MaxBackgroundFPS; |
| 1161 | if (BackgroundFPS <= 0) |
| 1162 | { |
| 1163 | return 0.0; |
| 1164 | } |
| 1165 |
no test coverage detected