Fix coding style
This commit is contained in:
parent
a6d5421e98
commit
4d43efa466
@ -17,7 +17,7 @@ namespace interface {
|
||||
|
||||
namespace worker_thread {
|
||||
struct ThreadPool;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace app
|
||||
|
@ -43,4 +43,5 @@ void init_atlas(lua_State *L)
|
||||
|
||||
} // namespace lua_bindingss
|
||||
|
||||
// codestyle:disable (currently util/codestyle.sh screws up the .def formatting)
|
||||
// vim: set noet ts=4 sw=4:
|
||||
|
@ -300,16 +300,18 @@ struct SetPhysicsBoxesTask: public interface::worker_thread::Task
|
||||
interface::mesh::set_voxel_physics_boxes(
|
||||
node, context, result_boxes, false);
|
||||
break;
|
||||
case 3: {
|
||||
case 3:
|
||||
// Times on Dell Precision M6800:
|
||||
// 0 boxes -> 30us
|
||||
// 1 box -> 64us
|
||||
// 160 boxes -> 8419us (hilly forest)
|
||||
// 259 boxes -> 15704us (hilly forest, bad case)
|
||||
{
|
||||
RigidBody *body = node->GetComponent<RigidBody>();
|
||||
if(body)
|
||||
body->OnSetEnabled();
|
||||
return true; }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
post_step++;
|
||||
return false;
|
||||
@ -440,9 +442,10 @@ void clear_voxel_physics_boxes(const luabind::object &node_o)
|
||||
node->RemoveComponent(previous_shapes[i]);
|
||||
}
|
||||
|
||||
#define LUABIND_FUNC(name) def("__buildat_" #name, name)
|
||||
|
||||
void init_mesh(lua_State *L)
|
||||
{
|
||||
#define LUABIND_FUNC(name) def("__buildat_" #name, name)
|
||||
using namespace luabind;
|
||||
module(L)[
|
||||
LUABIND_FUNC(set_simple_voxel_model),
|
||||
@ -457,5 +460,5 @@ void init_mesh(lua_State *L)
|
||||
|
||||
} // namespace lua_bindingss
|
||||
|
||||
// vim: set noet ts=4 sw=4:
|
||||
|
||||
// vim: set noet ts=4 sw=4:
|
||||
|
@ -35,4 +35,5 @@ void init_voxel(lua_State *L)
|
||||
|
||||
} // namespace lua_bindingss
|
||||
|
||||
// codestyle:disable (currently util/codestyle.sh screws up the .def formatting)
|
||||
// vim: set noet ts=4 sw=4:
|
||||
|
Loading…
x
Reference in New Issue
Block a user