Blender Git Commit Log

Git Commits -> Revision 31cc60e

Revision 31cc60e by Sybren A. Stüvel (master)
November 24, 2015, 08:15 (GMT)
BGE: Save screenshots in a different thread

This patch allows the game engine to keep running while performing things like PNG compression and disk I/O.

As an example, my crowd simulation rasterizer saves a screenshot for every frame. This now takes up 13 msec per frame, which was 31 msec before this patch. Effectively, it allows the simulation to save every frame and still run at 60 FPS.

Reviewers: lordloki, moguri, panzergame

Reviewed By: moguri, panzergame

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1507

Commit Details:

Full Hash: 31cc60e76bfa81783e61a7b01586de9547de0174
Parent Commit: c026aa6
Lines Changed: +178, -85

1 Added Path:

/source/gameengine/Rasterizer/RAS_ICanvas.cpp (+128, -0) (View)

7 Modified Paths:

/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp (+17, -37) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderCanvas.h (+0, -1) (Diff)
/source/gameengine/GamePlayer/common/GPC_Canvas.cpp (+9, -41) (Diff)
/source/gameengine/GamePlayer/common/GPC_Canvas.h (+0, -2) (Diff)
/source/gameengine/Rasterizer/CMakeLists.txt (+2, -0) (Diff)
/source/gameengine/Rasterizer/RAS_ICanvas.h (+21, -4) (Diff)
/source/gameengine/Rasterizer/SConscript (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021