m1n1.agx.{context,render}: Track fewer objects

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2022-08-17 13:56:55 +09:00
parent 27e161b94e
commit 1e0999450d
2 changed files with 4 additions and 4 deletions

View file

@ -152,7 +152,7 @@ class GPUMicroSequence:
def finalize(self):
self.ops.append(EndCmd())
self.size = sum(i.sizeof() for i in self.ops)
self.obj = self.agx.kobj.new_buf(self.size, "GPUMicroSequence")
self.obj = self.agx.kobj.new_buf(self.size, "GPUMicroSequence", track=False)
self.obj.val = b"".join(i.build() for i in self.ops)
self.obj.push()
return self.obj
@ -191,8 +191,8 @@ class GPUBufferManager:
self.pages_per_block = 4
self.block_size = self.pages_per_block * self.page_size
self.page_list = context.uobj.new(Array(0x10000 // 4, Int32ul), "BM PageList")
self.block_list = context.uobj.new(Array(0x8000 // 4, Int32ul), "BM BlockList")
self.page_list = context.uobj.new(Array(0x10000 // 4, Int32ul), "BM PageList", track=False)
self.block_list = context.uobj.new(Array(0x8000 // 4, Int32ul), "BM BlockList", track=False)
self.info = info = agx.kobj.new(BufferManagerInfo)
info.page_list_addr = self.page_list._addr

View file

@ -125,7 +125,7 @@ class GPURenderer:
self.buffer_mgr_initialized = False
self.unk_emptybuf = agx.kobj.new_buf(0x40, "unk_emptybuf")
self.tvb_something_size = 0x8000
self.tvb_something = ctx.uobj.new_buf(self.tvb_something_size, "TVB Something", track=True).push()
self.tvb_something = ctx.uobj.new_buf(self.tvb_something_size, "TVB Something", track=False).push()
##### Job group