Changeset 227 for trunk/LocalPlayer/Term.pas
- Timestamp:
- May 14, 2020, 9:31:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r220 r227 6080 6080 NoMap.PaintUnit(xMoving - xMin, yMoving - yMin, UnitInfo, 0); 6081 6081 PaintBufferToScreen(xMin, yMin, xRange, yRange); 6082 {$IFDEF LINUX} 6083 // TODO: Force animation under linux 6084 Application.ProcessMessages; 6085 {$ENDIF} 6082 6086 6083 6087 SliceCount := 0; … … 6085 6089 repeat 6086 6090 if (SliceCount = 0) or 6087 ( MillisecondOf(Ticks - Ticks0) * 12* (SliceCount + 1) div SliceCount6091 (Round(((Ticks - Ticks0) * 12) / OneMillisecond) * (SliceCount + 1) div SliceCount 6088 6092 < MoveTime) then 6089 6093 begin 6090 6094 if not idle or (GameMode = cMovie) then 6091 6095 Application.ProcessMessages; 6092 {$IFDEF LINUX}6093 // TODO: Force animation under linux6094 Application.ProcessMessages;6095 {$ENDIF}6096 6096 Sleep(1); 6097 6097 inc(SliceCount) 6098 6098 end; 6099 6099 Ticks := NowPrecise; 6100 until ( Ticks - Ticks0) / OneMillisecond * 12>= MoveTime;6100 until (((Ticks - Ticks0) * 12) / OneMillisecond) >= MoveTime; 6101 6101 Ticks0 := Ticks 6102 6102 end; … … 6539 6539 time1 := NowPrecise; 6540 6540 SimpleMessage(Format('Map repaint time: %.3f ms', 6541 [ MillisecondOf(time1 - time0)]));6541 [(time1 - time0) / OneMillisecond])); 6542 6542 end 6543 6543 end
Note:
See TracChangeset
for help on using the changeset viewer.