Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 1291:8884bf45f010
prev1282:9f445c5e252b
author nkeynes
date Sat Aug 04 08:46:28 2012 +1000 (11 years ago)
permissions -rw-r--r--
last change Handle corner case in pvr2_run_slice when we've previously slightly overrun
the end of the time slice
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Tue Mar 27 08:23:52 2012 +1000
1.2 +++ b/src/pvr2/pvr2.c Sat Aug 04 08:46:28 2012 +1000
1.3 @@ -345,8 +345,12 @@
1.4
1.5 static uint32_t pvr2_run_slice( uint32_t nanosecs )
1.6 {
1.7 - pvr2_update_raster_posn( nanosecs );
1.8 - pvr2_state.cycles_run = 0;
1.9 + if( nanosecs <= pvr2_state.cycles_run ) {
1.10 + pvr2_state.cycles_run -= nanosecs;
1.11 + } else {
1.12 + pvr2_update_raster_posn( nanosecs );
1.13 + pvr2_state.cycles_run = 0;
1.14 + }
1.15 return nanosecs;
1.16 }
1.17
.