Skip to content

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Streaming fix #4201

wants to merge 3 commits into from

Conversation

tederis
Copy link
Member

@tederis tederis commented May 6, 2025

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).

@tederis tederis added the bugfix Solution to a bug of any kind label May 6, 2025
@Dutchman101
Copy link
Member

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)

@Dutchman101 Dutchman101 requested a review from TheNormalnij May 7, 2025 20:01
@Dutchman101
Copy link
Member

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())
Copy link
Member

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

@TheNormalnij
Copy link
Member

The logic looks correct

@43X01Y05KY9K1S42088X
Copy link

Up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants