forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TM] Revert milla optimizations #1744
Closed
m-dzianishchyts
wants to merge
4
commits into
ss220club:master
from
m-dzianishchyts:revert-milla-optimizations
Closed
[TM] Revert milla optimizations #1744
m-dzianishchyts
wants to merge
4
commits into
ss220club:master
from
m-dzianishchyts:revert-milla-optimizations
Conversation
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
m-dzianishchyts
added
📜 CL не требуется
Эти изменения не влияют на игровой процесс или игроки по какой-то причине не должны о них знать
Do Not Merge
Не заливать. В ожидании хэда/хоста. Или просто временный тестмерж.
Testmerge Required
labels
Jan 12, 2025
Reviewer's Guide by SourceryThis PR reverts the MILLA optimizations introduced in #1739. It changes how the atmospherics subsystem handles MILLA synchronization and removes the concept of "sleepable" callbacks. Sequence diagram for MILLA synchronizationsequenceDiagram
participant SSair as SSair Subsystem
participant MILLA as MILLA Thread
participant Callbacks as Waiting Callbacks
SSair->>MILLA: spawn_milla_tick_thread()
Note over SSair: is_synchronous = FALSE
MILLA-->>SSair: Process atmospheric simulation
MILLA->>SSair: on_milla_tick_finished()
Note over SSair: is_synchronous = TRUE
activate SSair
SSair->>Callbacks: Execute waiting callbacks
deactivate SSair
Class diagram showing removed sleepable callback systemclassDiagram
class SSair {
-bool is_synchronous
-bool in_milla_safe_code
-list waiting_for_sync
+fire()
+synchronize()
+on_milla_tick_finished()
}
class milla_safe {
+invoke_async()
+on_run()
-private_unsafe_invoke()
}
SSair -- milla_safe: manages
State diagram for MILLA synchronization changesstateDiagram-v2
[*] --> Synchronous: Initial State
Synchronous --> Asynchronous: spawn_milla_tick_thread()
Asynchronous --> Synchronous: on_milla_tick_finished()
state Synchronous {
[*] --> Safe: in_milla_safe_code = TRUE
Safe --> [*]: in_milla_safe_code = FALSE
}
state Asynchronous {
[*] --> WaitingForSync
WaitingForSync --> ProcessCallbacks: on_milla_tick_finished()
ProcessCallbacks --> [*]
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
github-actions
bot
added
Частичная модульность
Не всегда получается всё впихнуть в модуль, увы.
🎸 Инструменты
Мы выдаем себя за реальное сообщество разработчиков.
labels
Jan 12, 2025
!build_rust |
m-dzianishchyts
force-pushed
the
revert-milla-optimizations
branch
2 times, most recently
from
January 12, 2025 17:57
d903f25
to
0f782bf
Compare
This reverts commit 24f6787
m-dzianishchyts
force-pushed
the
revert-milla-optimizations
branch
from
January 12, 2025 18:02
0f782bf
to
d2de917
Compare
m-dzianishchyts
changed the title
Revert milla optimizations
[TM] Revert milla optimizations
Jan 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Do Not Merge
Не заливать. В ожидании хэда/хоста. Или просто временный тестмерж.
Частичная модульность
Не всегда получается всё впихнуть в модуль, увы.
🎸 Инструменты
Мы выдаем себя за реальное сообщество разработчиков.
Merge Conflict
Ну блять...
📜 CL не требуется
Эти изменения не влияют на игровой процесс или игроки по какой-то причине не должны о них знать
Testmerge Required
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Что этот PR делает
Откатывает недавние изменения в атмосе после #1739. Тест производительности.
Summary by Sourcery
Enhancements: