Dustin Carlino
d987879389
gracefully handle editing the currently active traffic signal phase live in the challenge mode
2020-07-05 14:18:00 -07:00
Dustin Carlino
5427d8ea40
also express lane type changes using the new approach
2020-07-05 14:04:49 -07:00
Dustin Carlino
6e8eef8d09
start refactoring how edits are validated. need to deal with lane types
...
next
2020-07-05 13:20:19 -07:00
Dustin Carlino
5daab4fdbc
allow closing intersections in maps with sidewalks that start off disconnected. just dont allow disconnecting anything new.
2020-07-05 11:37:03 -07:00
Dustin Carlino
422889e543
lazily render lanes, same as road labels. greatly speeds up start-up times (helps with #125 ), doesnt melt the GPU on large maps. also paves the way for dynamically adjusting z-order rendering (for #126 )
...
because we no longer try to upload massive gobs of data to the GPU at
once, huge_seattle on my system goes from initially loading in about a
minute down to 11s
2020-07-05 11:30:34 -07:00
Dustin Carlino
8b7658c48f
dont crash when closing a traffic signal with disconnected sidewalks
2020-07-04 18:08:54 -07:00
Dustin Carlino
181de12409
woops, 72d0171300
broke signal editor by
...
crashing if you were missing a turn. dont validate in the middle of
editing. still seeing a problem with traffic signal -> construction
2020-07-04 17:51:45 -07:00
Dustin Carlino
5a677eb2ec
optionally dont draw in jump-to-time, to help with #125
2020-07-04 13:37:29 -07:00
Dustin Carlino
068b4223c8
prototype controls for hiding z-orders, for #126 [rebuild]
2020-07-04 13:18:27 -07:00
Dustin Carlino
f02fa8bddd
add a tool to export roads to https://github.com/d-wasserman/shared-row
2020-07-04 11:29:45 -07:00
Dustin Carlino
505311a93f
improve the signal synchronization a bit for #8 . hardcode a few small
...
intersections to make the downtown map make more progress. make it
easier to copy OSM node IDs.
2020-07-04 08:53:13 -07:00
Dustin Carlino
575dcfb782
snap bus vehicle/sidewalk positions to the correct side of the road and
...
a more appropriate lane. also fix #122
2020-07-03 19:00:20 -07:00
Dustin Carlino
ac88a96f61
use a different icon for train stops
2020-07-03 17:49:36 -07:00
Dustin Carlino
0dc42d7e19
use bus stops from OSM instead of gtfs. expose the stop name and the
...
driving position in the info panel. some issues with the driving
positions, but this is the way forward for light rail.
2020-07-03 15:22:13 -07:00
Dustin Carlino
4f507ef96a
refactor Composite style
2020-07-03 13:01:54 -07:00
Dustin Carlino
8b006c037d
slim down sidewalk corners, at the repeated urging of julian
2020-07-02 17:12:08 -07:00
Dustin Carlino
ec2411fb8b
experiment with isochrones. nothing yet.
2020-07-02 13:41:24 -07:00
Dustin Carlino
6b409b42d0
make the UI understand deleting a zone
2020-07-02 12:48:20 -07:00
Dustin Carlino
0a499f65e2
start changing access restrictions for an entire zone. found a way to
...
represent the edits. no support yet for changing what roads are in a
zone.
2020-07-02 12:15:37 -07:00
Dustin Carlino
7d4cf4cd5b
follow up to #59 . when we do the no-op events, have to plumb back
...
updates. this is needed when we push on new states to warp somewhere or
jump to a time or do anything else requesting updates
2020-07-01 22:07:54 -07:00
Dustin Carlino
72d0171300
fix #111 by delaying constructing ControlTrafficSignal from edits. also
...
fix time warp screen issue after the UpdateType changes [rebuild]
2020-07-01 19:34:15 -07:00
Dustin Carlino
a62e3133db
cleanup after #59 :
...
- cargo fmt
- update some comments
- remove EventLoopMode
- if no updates are requested, that's the equivalent of InputOnly
2020-07-01 17:57:43 -07:00
Javed Nissar
1f58cbf16d
Refactor event update loop ( #59 )
...
* Refactor event update loop to enable multiple game update types
* Implement pan event to improve panning with cursor at edge of screen and
fixed formatting
2020-07-01 17:47:30 -07:00
Dustin Carlino
1422643973
finish the ezgui layout refactor. most things are way more consistent now, and with less code
2020-07-01 15:39:04 -07:00
Dustin Carlino
834f060462
yet more layout refactor
2020-07-01 15:31:52 -07:00
Dustin Carlino
f9cfe136e0
new save edits UI, not using wizard. using for:
...
- save as dialog
- loading new edits
still TODO:
- leaving sandbox mode
- final score challenge screen
part of #110
2020-07-01 13:11:58 -07:00
Dustin Carlino
ef51a8b9b8
more layout refactor
2020-07-01 12:11:00 -07:00
Dustin Carlino
c61371a777
variant of row/col that have good default margins. starting a big
...
refactor to make everything consistent. not sure mechanical refactor is
right here. lots left, but a start.
2020-07-01 09:50:35 -07:00
Dustin Carlino
c191ffde9a
filter out broken edits (which happen due to schema changes)
2020-06-30 19:48:25 -07:00
Dustin Carlino
2c7440b03f
start representing access restrictions by mode
2020-06-30 13:15:57 -07:00
Dustin Carlino
2b4bf1172b
start a UI for modifying access restrictions of zones. mostly just the
...
skeleton right now
2020-06-30 12:16:08 -07:00
Dustin Carlino
2b50e7969c
refactor position
2020-06-29 20:55:36 -07:00
Dustin Carlino
1617a3d3c1
skip missing maps in the city picker
2020-06-29 09:36:37 -07:00
Dustin Carlino
c97bd0fe4b
some cleanup after #106 . unbreak importer
2020-06-28 11:13:35 -07:00
phimuemue
a675e72d25
Avoid collect et al ( #106 )
...
* Avoid unconditional collect in get_lane_types
* Introduce Road::children(fwds)
Simplifies direction-aware lane retrieval.
* Simplify all_lanes
* Avoid unneeded collect
* Avoid some Vec copying
* Avoid unconditional collect
* Avoid some collect
* Avoid clone
* Avoid collect
* Avoid collect
* Avoid collect
* Avoid collect
* Avoid collect
* Avoid collect
Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2020-06-28 11:00:09 -07:00
Dustin Carlino
63d16a16c3
speed up the trip table tab. on lakeslice at 8am, down from ~0.3s to
...
~0.005s in release mode
2020-06-28 10:44:21 -07:00
Dustin Carlino
bb3da1f8eb
Make a very primitive form of adaptive traffic signal phases. It should
...
be easier to write better policies now; this mostly does the work of
changing the map model and UI to handle variable timing. A small step
towards #91
2020-06-28 10:20:47 -07:00
Dustin Carlino
ae6c099bd5
start bringing in private broadmoor roads. omit from the CH, so trips will just fail without a path for now.
2020-06-27 16:19:48 -07:00
Dustin Carlino
a6b90d00d8
very simple modifier to cancel all trips for some percentage of people
2020-06-27 14:20:25 -07:00
Dustin Carlino
90b556ac1f
carve out a way to modify the weekday scenario in the UI. express the 5 day repeat using this
2020-06-27 11:56:45 -07:00
Dustin Carlino
2881341b63
make parking lots hideable. dont snap parking and sidewalk hints to
...
light rail. not regenerating all the maps again yet to avoid some churn
2020-06-26 17:02:14 -07:00
Dustin Carlino
eab0988bd8
hello light rail! just import the tracks, represent as a new lane type.
...
make clipping handle starts and ends separately
2020-06-26 16:47:18 -07:00
Dustin Carlino
16beebd1de
use underlining to refer to edits, not quotes. only in some places. :\
2020-06-26 14:13:12 -07:00
Dustin Carlino
bfd1b9c190
rotate labels on buses, now that i figured out how to do it reasonably on roads
2020-06-26 11:31:27 -07:00
Dustin Carlino
77fa6eb43d
switch to upstream usvg, now with support for a loaded-once fontdb that
...
only uses bundled fonts, not system fonts. side effect is that
apparently the overpass font doesn't have ▼, so switch to a silly down
arrow for now
2020-06-26 11:22:22 -07:00
Dustin Carlino
7fa26dfc90
add a mode to draw every zoomed agent, to help flush out bugs like #98 and #72 faster
2020-06-25 10:55:17 -07:00
Dustin Carlino
b3a480b4c1
clean up old trip positions from Sim. implement the all-route debugger
...
in a more straightforward way
2020-06-25 09:20:54 -07:00
Dustin Carlino
bc6482c522
include camera state and edits in the crash report. would make it easier to repro #98 and #72
2020-06-25 09:02:50 -07:00
Jeff Raymakers
56277bbbad
fix math in city picker to use scale factor ( #102 )
...
Co-authored-by: Jeff Raymakers <jephy@gmail.com>
2020-06-24 23:02:05 -07:00
Tim Newsome
4ccd13c8e1
Round time to 10 minutes in jump to dialog ( #100 )
...
This allows me to quickly and precisely jump to the same time every
time.
2020-06-24 20:55:18 -07:00