-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Timer: QPC usage replaced by std::chrono" This reverts commit c345b9e.
- Loading branch information
1 parent
9096480
commit f64580e
Showing
9 changed files
with
228 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А какие проблемы возникли?
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сломался time_factor и катсцены, которые зависят от таймеров, поплыли. Яркий пример – первая встреча Дегтярёва с военными при выходе из Путепровода-1. Смотреть неприятно)
Просто, на std::chrono таймеры возвращают другие значения. Это ещё @Giperionn заметил и как только std::chrono появился в Окси, он его почти сразу выпилил и вернул старые таймеры.. А я только сейчас добрался...
Возможно, можно как-то сделать на std::chrono. чтобы всё было так же как и на оригинальных таймерах, но я не знаю как это сделать)
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я вот помню, что там были проблемы в скриптовом таймере, он возвращал какие-то неадекватные значения.
Я у себя фиксил: https://github.com/KRodinn/OGSR-Engine/blob/86eb84188b46e620263c8dc868cfcddf1df42876/ogsr_engine/COMMON_AI/script_engine_script.cpp#L76
А вот с FTimer и пр. вроде проблем не замечал. Но на всякий случай наверное тоже ревертну у себя.
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проверь тайм-фактор с таймерами на std::chrono, работает?
@Im-dex говорил, что у него нормально было с этим...
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проверю на днях
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А на что именно обратить внимание? Что именно в тайм-факторе проверить? Навскидку не припомню каких-то проблем, но может просто пока не заметил.
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ага, я вижу, что вот этот коммит https://github.com/KRodinn/OGSR-Engine/blob/86eb84188b46e620263c8dc868cfcddf1df42876/ogsr_engine/xrCore/FTimer.h#L3 был аж 28-го марта. С того времени проблема бы уж точно всплыла. Не, не было проблем.
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
У меня тайм-фактор просто не работал. Не реагировало. Ну, и уже упомянутые уплывшие катсцены..
f64580e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну, время идет, погода меняется, дни проходят и т.д. Вроде все нормально с тайм-фактором. Может это потому, что при при загрузке он выставляется в 0, а на первом апдейте восстанавливается, не знаю.