-
-
Notifications
You must be signed in to change notification settings - Fork 459
Streaming fix #4201
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
base: master
Are you sure you want to change the base?
Streaming fix #4201
Conversation
Thanks! This will be merged in one of the next rounds of builds that are intended for extensive testing. Streamer is always a sensitive part to modify, as we also just got reminded of. (Please don't merge it before i do) |
I've requested a review from TheNormalnij as well, he has experience with streamer stuff. |
@@ -4041,6 +4041,13 @@ void CClientPed::ReCreateGameEntity() | |||
|
|||
void CClientPed::ModelRequestCallback(CModelInfo* pModelInfo) | |||
{ | |||
// The model loading may take a while and there's a chance of ped being moved to other dimension. | |||
if (!IsVisibleInAllDimensions() && GetDimension() != m_pStreamer->GetDimension()) |
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.
if (!ShouldBeVisibleInCurrentDimension())
And you can keep m_pStreamer
private
The logic looks correct |
Up |
The reimplementation of #4184(thanks to @FileEX) and includes fix #4198(thanks to @Nico8340) with changes which make the whole thing a little bit more performant(it prevents models from loading instead of unloading them straight after the load).