还是一堆bug的状态

This commit is contained in:
2026-08-01 20:09:45 +08:00
parent 0df7beda49
commit 8fb9683182
294 changed files with 13678 additions and 10864 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "Explicit_Refresh_Strategy.h"
namespace renderive {
void Explicit_Refresh_Strategy::request_render() {
manual_request_pending.store(true, std::memory_order_release);
}
Refresh_Action Explicit_Refresh_Strategy::on_trigger(
Refresh_Trigger,
const Refresh_Runtime_Snapshot& runtime,
const Frame_Lifecycle_Record*) {
Refresh_Action action;
if (!manual_request_pending.load(std::memory_order_acquire))
return action;
if (!runtime.enabled || runtime.destroying || runtime.render_job_active)
return action;
manual_request_pending.store(false, std::memory_order_release);
action.try_render = true;
if (runtime.middle_has_new_frame && !runtime.paint_active)
action.request_paint = true;
return action;
}
} // namespace renderive