something like this would do the trick:
In Start():
lasttime=0
In Loop():
if Time:GetCurrent()-5000>lasttime then
lasttime=Time:GetCurrent()
...do stuff you want to happen every 5sec
end
Not trying to undermine the request, but if you dont want to wait :
shaders/Terrain/wireframe.shader
Just add the a line somewehere in main() :
discard;
1. Not sure, I think it comes with a slow framerate, but disable occlusion culling might help if it's on.
2. MSAA looks great but is a very slow AA technique in my opinion. You could try combing, like 2 x MSAA + FXAA looks pretty good. Or just use plain FXAA for speed.
Add a return model to your addtiles function and use this to register a grid:
grid = {}
for i = 1, 10 do
grid[i] = {}
for j = 1, 10 do
grid[i][j] = AddTile(i,0,j)
end
end
and you can then access individual tiles by grid[x][y]
Disable physics for it, using SetPosition() on physics enabled objects isn't really how you are suppose to do it. You should use forces.
EntityDoor->SetMass(0.0f);
Also note that the door prefab you are using has a connected script : SlidingDoor.lua
You would be better off just loading the model file (mdl) for the door in your example, not the physics enabled prefab which also has a script attached to it.