Author: ArcRiley Date: 2008-03-07 02:12:35 -0500 (Fri, 07 Mar 2008) New Revision: 1082
Modified: trunk/pysoy/src/scenes/Scene.pxi Log: '''soy.scenes.Scene''': * removed unused _maxstep variable * _steps is now calculated after _stepLock is aquired for accuracy * added some comments and general cleanup Modified: trunk/pysoy/src/scenes/Scene.pxi =================================================================== --- trunk/pysoy/src/scenes/Scene.pxi 2008-03-07 01:40:00 UTC (rev 1081) +++ trunk/pysoy/src/scenes/Scene.pxi 2008-03-07 07:12:35 UTC (rev 1082) @@ -71,7 +71,7 @@ cdef int _loop(self) : - cdef int _i, _step, _maxstep + cdef int _i, _steps self._updateTime() self._callFields._empty() self._giveFields._empty() @@ -99,11 +99,9 @@ self._callFields._foreach(_runField, NULL) self._bodies._iterDone() # - _step = self._steps() - if _step > _maxstep : - _maxstep = _step self._stepLock() - for _i from 0 <= _i < _step : + _steps = self._steps() + for _i from 0 <= _i < _steps : self._updateTime() self._giveFields._foreach(_prerunField, NULL) self._callFields._empty() @@ -118,9 +116,10 @@ cdef void _coreRender(self) : - cdef int _i + cdef int _i cdef float _ambientLight[4] - + # + # Setup scene-level rendering gl.glClear(gl.GL_DEPTH_BUFFER_BIT) gl.glEnable(gl.GL_DEPTH_TEST) gl.glEnable(gl.GL_LIGHTING) _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn