mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Test disabling MtrlForceSync.
This commit is contained in:
parent
30a957356a
commit
4d26a63944
1 changed files with 0 additions and 11 deletions
|
|
@ -256,7 +256,6 @@ public unsafe class ResourceLoader : IDisposable, IService
|
|||
gamePath.Path.IsAscii);
|
||||
fileDescriptor->ResourceHandle->FileNameData = path.Path;
|
||||
fileDescriptor->ResourceHandle->FileNameLength = path.Length;
|
||||
MtrlForceSync(fileDescriptor, ref isSync);
|
||||
returnValue = DefaultLoadResource(path, fileDescriptor, priority, isSync, data);
|
||||
// Return original resource handle path so that they can be loaded separately.
|
||||
fileDescriptor->ResourceHandle->FileNameData = gamePath.Path.Path;
|
||||
|
|
@ -295,16 +294,6 @@ public unsafe class ResourceLoader : IDisposable, IService
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary> Special handling for materials. </summary>
|
||||
private static void MtrlForceSync(SeFileDescriptor* fileDescriptor, ref bool isSync)
|
||||
{
|
||||
// Force isSync = true for Materials. I don't really understand why,
|
||||
// or where the difference even comes from.
|
||||
// Was called with True on my client and with false on other peoples clients,
|
||||
// which caused problems.
|
||||
isSync |= fileDescriptor->ResourceHandle->FileType is ResourceType.Mtrl;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A resource with ref count 0 that gets incremented goes through GetResourceAsync again.
|
||||
/// This means, that if the path determined from that is different than the resources path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue