]> git.sesse.net Git - movit/commitdiff
Add a notice to render_to_screen() that it might be suboptimal.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 8 Aug 2017 16:03:09 +0000 (18:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 8 Aug 2017 16:03:09 +0000 (18:03 +0200)
effect_chain.h

index cd0a19f4dcd3cbe4972f186a0f25e324bf692517..6d9d062d747f4901c39e6b7681a6b4365c7d3939 100644 (file)
@@ -364,6 +364,9 @@ public:
        void reset_phase_timing();
        void print_phase_timing();
 
        void reset_phase_timing();
        void print_phase_timing();
 
+       // Note: If you already know the width and height of the viewport,
+       // calling render_to_fbo() directly will be slightly more efficient,
+       // as it saves it from getting it from OpenGL.
        void render_to_screen()
        {
                render_to_fbo(0, 0, 0);
        void render_to_screen()
        {
                render_to_fbo(0, 0, 0);