Skip to content

Commit

Permalink
More useful logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhogg committed Jan 23, 2024
1 parent 367026c commit 5f785e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flitter/render/window/models.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ cdef class Model:
if name in objects:
del objects[name]
return None, None
logger.trace("Preparing model {}", name)
while len(ModelCache) > MaxModelCacheEntries:
dead_name = next(iter(ModelCache))
del ModelCache[dead_name]
Expand All @@ -69,6 +68,7 @@ cdef class Model:
vertex_data = np.hstack((trimesh_model.vertices, vertex_normals, vertex_uvs)).astype('f4')
index_data = faces.astype('i4')
buffers = (glctx.buffer(vertex_data), glctx.buffer(index_data))
logger.trace("Prepared model {} with {} vertices and {} faces", name, len(trimesh_model.vertices), len(trimesh_model.faces))
objects[name] = buffers
return buffers

Expand Down

0 comments on commit 5f785e4

Please sign in to comment.