mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
Prep for release [rebuild]
This commit is contained in:
parent
1791ef70a5
commit
a2d36274a2
@ -611,5 +611,15 @@ changes here.
|
||||
|
||||
- improve turn generation, with goldenfile tests
|
||||
- UI adjustments: unzoomed routes, better delay layer, include reasons for cancelled trips, throughput layer counts
|
||||
- small map importing fixes: multipolygon parking lots,
|
||||
- small map importing fixes: multipolygon parking lots
|
||||
- fix infinite parking and blackholed buildings
|
||||
|
||||
0.2.15
|
||||
|
||||
- large internal change allowing asynchronously loading extra files over HTTP for web
|
||||
- the release of the first web version!
|
||||
- cars looking for parking now have a "thought bubble" showing this, by Michael
|
||||
- slow sections of a trip are now shown in the info panel, by Sam
|
||||
- fix by Michael for handling window resizing in panels
|
||||
- fix original routes on edited maps
|
||||
- internal code organization and documentation
|
||||
|
@ -289,8 +289,10 @@ pub fn open_browser(url: String) {
|
||||
|
||||
pub fn loading_tips() -> Text {
|
||||
Text::from_multiline(vec![
|
||||
Line("Recent changes (September 27)"),
|
||||
Line("Recent changes (October 11)"),
|
||||
Line(""),
|
||||
Line("- A web version has launched!"),
|
||||
Line("- Slow segments of a trip shown in the info panel"),
|
||||
Line("- Alleyways are now included in the map"),
|
||||
Line("- Check out the trip tables and summary changes (press 'q')"),
|
||||
Line("- Try out the new traffic signal editor!"),
|
||||
|
@ -45,13 +45,13 @@ pub struct Analytics {
|
||||
/// Finish time, ID, mode, trip duration
|
||||
pub finished_trips: Vec<(Time, TripID, Option<TripMode>, Duration)>,
|
||||
|
||||
// Records how long was spent waiting at each turn (Intersection) for a given trip
|
||||
// Over a certain threshold
|
||||
// TripID, [(TurnID, Time Waiting In Seconds)]
|
||||
/// Records how long was spent waiting at each turn (Intersection) for a given trip
|
||||
/// Over a certain threshold
|
||||
/// TripID, [(TurnID, Time Waiting In Seconds)]
|
||||
pub trip_intersection_delays: BTreeMap<TripID, BTreeMap<TurnID, u8>>,
|
||||
// Records the average speed/maximum speed for each lane
|
||||
// If it is over a certain threshold (<95% of max speed)
|
||||
// TripID, [(LaneID, Percent of maximum speed as an integer (0-100)]
|
||||
/// Records the average speed/maximum speed for each lane
|
||||
/// If it is over a certain threshold (<95% of max speed)
|
||||
/// TripID, [(LaneID, Percent of maximum speed as an integer (0-100)]
|
||||
pub lane_speed_percentage: BTreeMap<TripID, BTreeMap<LaneID, u8>>,
|
||||
|
||||
// TODO This subsumes finished_trips
|
||||
|
@ -208,7 +208,7 @@ impl DrivingSimState {
|
||||
// checker, temporarily move one of them out of the BTreeMap.
|
||||
let mut car = self.cars.remove(&id).unwrap();
|
||||
// Responsibility of update_car to manage scheduling stuff!
|
||||
need_distances = self.update_car_without_distances(&mut car, id, now, ctx, transit);
|
||||
need_distances = self.update_car_without_distances(&mut car, now, ctx, transit);
|
||||
self.cars.insert(id, car);
|
||||
}
|
||||
|
||||
@ -241,7 +241,6 @@ impl DrivingSimState {
|
||||
fn update_car_without_distances(
|
||||
&mut self,
|
||||
car: &mut Car,
|
||||
id: CarID,
|
||||
now: Time,
|
||||
ctx: &mut Ctx,
|
||||
transit: &mut TransitSimState,
|
||||
@ -379,7 +378,7 @@ impl DrivingSimState {
|
||||
self.events.push(Event::TripIntersectionDelay(
|
||||
trip,
|
||||
t,
|
||||
AgentID::Car(id),
|
||||
AgentID::Car(car.vehicle.id),
|
||||
now - blocked_since,
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user