Update screen using python scripts I'm working on a new iterative algorithm for generating geometries. I'm trying to update the screen for each iteration on the screen to monitor the results (real-time); blender doesn't respond during the calculations.

Note: I tried this command but didn't work:
bpy.ops.wm.redraw_timer(type='DRAW', iterations=1,time_limit=0)
This is the right command (Problem Solved):
bpy.ops.wm.redraw_timer(type='DRAW_WIN_SWAP', iterations=1)