mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 13:25:51 +12:00
Renderer: Improve null renderer performance (#646)
* Renderer: Improve null renderer performance * Update frontend_sdl.cpp
This commit is contained in:
parent
1a40deccb1
commit
4df171abfc
2 changed files with 9 additions and 5 deletions
|
@ -17,6 +17,10 @@ class RendererNull final : public Renderer {
|
|||
void screenshot(const std::string& name) override;
|
||||
void deinitGraphicsContext() override;
|
||||
|
||||
// Tell the GPU core that we'll handle vertex fetch & shader execution in the renderer in order to speed up execution.
|
||||
// Of course, we don't do this and geometry is never actually processed, since this is the null renderer.
|
||||
virtual bool prepareForDraw(ShaderUnit& shaderUnit, PICA::DrawAcceleration* accel) override { return true; };
|
||||
|
||||
#ifdef PANDA3DS_FRONTEND_QT
|
||||
virtual void initGraphicsContext([[maybe_unused]] GL::Context* context) override {}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue