仍然闪烁

This commit is contained in:
2026-08-02 18:58:35 +08:00
parent ffaca5b05f
commit 9a39f88427
54 changed files with 2257 additions and 2424 deletions
+4
View File
@@ -2,6 +2,7 @@
#include "../architecture/Update_Completion.h"
#include "../base/Color.h"
#include "../base/Geometry.h"
#include "Renderable_Frame_Node.h"
#include <atomic>
#include <cstdint>
#include <memory>
@@ -32,9 +33,12 @@ struct Render_Frame_Snapshot {
std::uint64_t previous_frame_time_ns{};
Frame_Lifecycle_Record* frame_metadata{};
std::pmr::vector<std::shared_ptr<Update_State>>* frame_update_states{};
const Renderable_Frame_Tree* frame_tree{};
mutable std::shared_ptr<Timeline_Stream_Frame_Cache> timeline_cache = std::make_shared<Timeline_Stream_Frame_Cache>();
[[nodiscard]] bool destroying() const;
[[nodiscard]] const Renderable_Frame_Node* find_node(Renderable_Id id) const;
[[nodiscard]] const Renderable_Frame_Node* frame_node_for(const Renderable* renderable) const;
[[nodiscard]] std::shared_ptr<const Timeline_Stream_Snapshot> timeline_snapshot(
const std::shared_ptr<Timeline_Stream>& stream,