Blender Git Loki

Git Commits -> Revision 92145d5

Revision 92145d5 by Campbell Barton (master)
September 22, 2009, 09:12 (GMT)
Changes to allow python to do redraws through the timer operator, a reliable way to test the overhead of the python api (printed to the consoel on exit).

- rename WM_OT_ten_timer to WM_OT_redraw_timer
- added iterations argument to run more then 10 times (10 is default still)
- use report api rather then always calling a popup directly.
- added a new test that draws every region without swapping.
- dont show the info popup when operators are called from python.
- operators called from python now print reports, useful with the interactive console.

eg.
>>> bpy.ops.wm.redraw_timer(type='DRAW_WIN', iterations=300)
Info: 300 x Draw Window: 4168.56 ms, average: 13.8952

Commit Details:

Full Hash: 92145d5950b3c069418a097055cc8ae0e5710423
SVN Revision: 23419
Parent Commit: 3c8d34b
Lines Changed: +66, -26

5 Modified Paths:

/source/blender/blenkernel/intern/report.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_sequence.c (+1, -0) (Diff)
/source/blender/python/intern/bpy_operator.c (+10, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+3, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+51, -24) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021