Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-11 19:15:06 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-11 19:15:06 +0400
commit120fe74ffeded5c5b8858cb8ffed15530aed86cb (patch)
tree4ba4be6aace83a6594c36f9f525e8c68de8b0751 /source/blender/editors/include
parent716459689100cf9f8399832153fae4c2e2b23fa1 (diff)
Fix #34817: improve OpenGL preview render speed, it got quite a bit slower since 2.60.
Doing linearization with GLSL was already faster, but even faster is to just read the bytes instead of floats and convert those to linear, since byte => float is just a quick 256 entry table lookup. Also made it assign the bytes directly to the image buffer so they do not need to be converted back from float to byte for file saving, and made sky render write the background color with OpenGL instead of doing it on the CPU.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/ED_view3d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h
index 091bc583360..a1cfc6f91a7 100644
--- a/source/blender/editors/include/ED_view3d.h
+++ b/source/blender/editors/include/ED_view3d.h
@@ -281,7 +281,7 @@ int ED_view3d_scene_layer_set(int lay, const int *values, int *active);
bool ED_view3d_context_activate(struct bContext *C);
void ED_view3d_draw_offscreen_init(struct Scene *scene, struct View3D *v3d);
void ED_view3d_draw_offscreen(struct Scene *scene, struct View3D *v3d, struct ARegion *ar,
- int winx, int winy, float viewmat[4][4], float winmat[4][4], bool do_bgpic);
+ int winx, int winy, float viewmat[4][4], float winmat[4][4], bool do_bgpic, bool do_sky);
struct ImBuf *ED_view3d_draw_offscreen_imbuf(struct Scene *scene, struct View3D *v3d, struct ARegion *ar, int sizex, int sizey, unsigned int flag,
bool draw_background, int alpha_mode, char err_out[256]);