mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 04:34:19 +01:00
Test improving object manager.
This commit is contained in:
parent
cc88738e3e
commit
1a9239a358
8 changed files with 17 additions and 18 deletions
|
|
@ -94,11 +94,10 @@ public sealed class DrawObjectState : IDisposable, IReadOnlyDictionary<nint, (ni
|
|||
/// </summary>
|
||||
private unsafe void InitializeDrawObjects()
|
||||
{
|
||||
for (var i = 0; i < _objects.Count; ++i)
|
||||
{
|
||||
var ptr = _objects[i];
|
||||
if (ptr is { IsCharacter: true, Model.Valid: true })
|
||||
IterateDrawObjectTree((Object*)ptr.Model.Address, ptr, false, false);
|
||||
foreach(var actor in _objects)
|
||||
{
|
||||
if (actor is { IsCharacter: true, Model.Valid: true })
|
||||
IterateDrawObjectTree((Object*)actor.Model.Address, actor, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue