Skip to content

Commit 71353f2

Browse files
committed
renderer: Compress sync on animations curve.
1 parent 14aa82e commit 71353f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libopenage/renderer/stages/world/object.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void WorldObject::fetch_updates(const time::time_t &time) {
6666

6767
// Thread-safe access to curves needs a lock on the render entity's mutex
6868
auto read_lock = this->render_entity->get_read_lock();
69-
this->position.sync(this->render_entity->get_position());
69+
this->position.sync(this->render_entity->get_position(), this->last_update);
7070
this->animation_info.sync(this->render_entity->get_animation_path(),
7171
std::function<std::shared_ptr<renderer::resources::Animation2dInfo>(const std::string &)>(
7272
[&](const std::string &path) {
@@ -79,7 +79,8 @@ void WorldObject::fetch_updates(const time::time_t &time) {
7979
}
8080
return this->asset_manager->request_animation(path);
8181
}),
82-
this->last_update);
82+
this->last_update,
83+
true);
8384
this->angle.sync(this->render_entity->get_angle(), this->last_update);
8485

8586
// Unlock mutex of the render entity

0 commit comments

Comments
 (0)