jeaye / q3

A Quake 3 like game with voxelized, destructible maps; written in Rust
BSD 3-Clause "New" or "Revised" License
500 stars 25 forks source link

Duplicate voxels are stored in VRAM #49

Closed jeaye closed 11 years ago

jeaye commented 11 years ago

The voxelization algorithm, since #6 has been keeping duplicate voxels and uploading them to VRAM. For the one-time price of load time, I'll load them in a set to maintain voxel uniqueness, and then transfer them to a vector after voxelization is finished.

For dueling keeps, this cut the voxel count uploaded to VRAM from 297,618 to 138,117 with a 300³ grid.