场景加载处理一些卡顿的情况
This commit is contained in:
1 parent
e7a3214cb5
commit
65fc5b5c50
35 files changed
+8668
-2075
No files matched your search
@@ -64,7 +64,7 @@ namespace Mapbox.Unity.MeshGeneration.Modifiers
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
_scaledWidth = _options.Width;
|
||||
_scaledWidth = 1;//_options.Width;
|
||||
_vertexList = new List<Vector3>();
|
||||
_normalList = new List<Vector3>();
|
||||
_triangleList = new List<int>();
|
||||
@@ -80,13 +80,13 @@ namespace Mapbox.Unity.MeshGeneration.Modifiers
|
||||
|
||||
public override void Run(VectorFeatureUnity feature, MeshData md, float scale)
|
||||
{
|
||||
_scaledWidth = _options.Width * scale;
|
||||
_scaledWidth = 1 * scale;
|
||||
ExtrudeLine(feature, md);
|
||||
}
|
||||
|
||||
public override void Run(VectorFeatureUnity feature, MeshData md, UnityTile tile = null)
|
||||
{
|
||||
_scaledWidth = tile.TileScale * 20;// tile != null ? _options.Width * tile.TileScale : _options.Width;
|
||||
_scaledWidth = tile.TileScale * 10;// tile != null ? _options.Width * tile.TileScale : _options.Width;
|
||||
ExtrudeLine(feature, md);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user