mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fixed a big performance leak.
This commit is contained in:
parent
987c41f50a
commit
6c4ee5996d
@ -71,7 +71,7 @@ generate_block(unsigned short mx,
|
||||
|
||||
// Create vertex data and writers
|
||||
PT(GeomVertexData) vdata = new GeomVertexData(_root.get_name(),
|
||||
GeomVertexFormat::register_format(format), Geom::UH_dynamic);
|
||||
GeomVertexFormat::register_format(format), Geom::UH_static);
|
||||
GeomVertexWriter cwriter;
|
||||
if (_has_color_map) {
|
||||
cwriter=GeomVertexWriter(vdata, "color" );
|
||||
@ -79,7 +79,7 @@ generate_block(unsigned short mx,
|
||||
GeomVertexWriter vwriter (vdata, "vertex" );
|
||||
GeomVertexWriter twriter (vdata, "texcoord");
|
||||
GeomVertexWriter nwriter (vdata, "normal" );
|
||||
PT(GeomTriangles) prim = new GeomTriangles(Geom::UH_dynamic);
|
||||
PT(GeomTriangles) prim = new GeomTriangles(Geom::UH_static);
|
||||
|
||||
if (_bruteforce) {
|
||||
// LOD Level when rendering bruteforce is always 0 (no lod)
|
||||
|
Loading…
x
Reference in New Issue
Block a user