Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

Commit

Permalink
Save memory for chunk display lists
Browse files Browse the repository at this point in the history
  • Loading branch information
kperdlich committed Jan 15, 2017
1 parent ac0ec94 commit 0191ff3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file modified WoxelCraft.dol
Binary file not shown.
Binary file modified WoxelCraft.elf
Binary file not shown.
2 changes: 2 additions & 0 deletions src/world/chunk/Chunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ void Chunk::FinishDisplayList()
{
m_displayListSize = GX_EndDispList();
m_isDirty = false;
// Update display list size to the size returned by GX_EndDispList() to save memory
realloc(m_pDispList, m_displayListSize);
}


Expand Down

0 comments on commit 0191ff3

Please sign in to comment.