3700 FPS here we go
This commit is contained in:
@@ -23,7 +23,7 @@ Seele::SceneView::~SceneView()
|
||||
void SceneView::beginFrame()
|
||||
{
|
||||
View::beginFrame();
|
||||
scene->tick(0);//TODO: update in separate thread
|
||||
scene->tick(Gfx::currentFrameDelta);//TODO: update in separate thread
|
||||
}
|
||||
|
||||
void SceneView::keyCallback(KeyCode code, InputAction action, KeyModifier)
|
||||
|
||||
@@ -9,7 +9,7 @@ class SceneView : public View
|
||||
public:
|
||||
SceneView(Gfx::PGraphics graphics, PWindow owner, const ViewportCreateInfo &createInfo);
|
||||
~SceneView();
|
||||
virtual void beginFrame();
|
||||
virtual void beginFrame() override;
|
||||
PScene getScene() const { return scene; }
|
||||
private:
|
||||
PScene scene;
|
||||
|
||||
Reference in New Issue
Block a user