From 6538edf86b77a7cdb47789816cb19452340ff7d1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 8 Aug 2017 18:03:09 +0200 Subject: [PATCH] Add a notice to render_to_screen() that it might be suboptimal. --- effect_chain.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/effect_chain.h b/effect_chain.h index cd0a19f..6d9d062 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -364,6 +364,9 @@ public: 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); -- 2.39.2