made trackpoints cap at 50. This fixes fps issues with the minimap. #fix #story[1295]
This commit is contained in:
@@ -137,6 +137,9 @@ public class VisualiserBoat extends Boat {
|
||||
//Update the nextValidTime for the next track point.
|
||||
nextValidTime = currentTimeMilli + trackPointTimeInterval;
|
||||
|
||||
if (track.size() > trackPointLimit) {
|
||||
track.remove(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user