Dustin Carlino
f9376cddcb
dont leak unfinished trips when things cant spawn
2019-08-19 15:05:10 -07:00
Dustin Carlino
f62965b5e2
small refactor: rename time param -> now. more clear and will help the Duration / Instant split later.
2019-08-19 14:56:07 -07:00
Dustin Carlino
7001139dc0
fix div by 0 bug with percent_dist_crossed for empty paths
2019-08-19 14:41:56 -07:00
Dustin Carlino
0ba3ab92ed
fix very, very, very dumb block-the-box bug. >_<
2019-08-19 14:32:15 -07:00
Dustin Carlino
2fe2559f67
new colorscheme showing trip time so far
2019-08-19 14:14:19 -07:00
Dustin Carlino
f3f4f98290
also use AgentColorScheme for zoomed color
2019-08-19 14:00:12 -07:00
Dustin Carlino
509936cd43
clip_trips breaking on some huge_seattle border intersections; just omit them
2019-08-19 12:29:20 -07:00
Dustin Carlino
de8e5d6295
cache text labels in DrawBuilding and DrawRoad
2019-08-19 12:06:50 -07:00
Dustin Carlino
df90fc4f50
polylabel for building numbers
2019-08-19 12:01:10 -07:00
Dustin Carlino
b2dba22872
popup menu to change colorscheme
2019-08-18 15:29:34 -07:00
Dustin Carlino
be71aa42fc
remove old unused get_unzoomed_agents, always return details. may be a little slower than the other, but it's worthwhile to prioritize optimizing the richer representation instead of maintaining awkward dupe code
2019-08-18 15:08:02 -07:00
Dustin Carlino
dd28afcd29
making all AgentColorScheme values work the same, with the same caching
2019-08-18 15:05:22 -07:00
Dustin Carlino
266dc0238d
at popular request, pedestrians now have hands
2019-08-18 14:34:10 -07:00
Dustin Carlino
9d58ee12a4
properly merging nearby pedestrians by intervals of dist_along
2019-08-18 14:32:07 -07:00
Dustin Carlino
d0d7bb79e3
color unzoomed agents by distance remaining
2019-08-16 16:25:27 -07:00
Dustin Carlino
a9267c76c7
debug tooltip showing how far an agent has traveled and how much
...
remains. seems to have small perf impact on initially calculating paths.
:(
2019-08-16 15:43:20 -07:00
Dustin Carlino
bbc4492205
be able to toggle off block-the-box protection. initial findings:
...
sometimes the protection makes things worse!
2019-08-16 13:59:07 -07:00
Dustin Carlino
a5b73c060a
make savestate_every a flag again
2019-08-16 13:34:38 -07:00
Dustin Carlino
8b14f9c69c
very basic version of labeling roads
2019-08-16 12:45:47 -07:00
Dustin Carlino
3cebc3cc44
try using freeform policy at all intersections, to see how it affects gridlock
2019-08-16 11:17:27 -07:00
Dustin Carlino
f78c58e11d
remove clipping dep from convert_osm, switch to geo-booleanop
2019-08-15 23:20:11 -07:00
Dustin Carlino
96db77e8b2
stop importing traffic signal data from king county. OSM's data is higher-quality and already attached to specific nodes.
2019-08-15 14:19:11 -07:00
Dustin Carlino
4f51e5b41d
remove experimental intersection geometry plugin, which depends on clipping -> piston -> arrayvec with different feature-set. now editor and precompute crates actually share built targets! \o/
2019-08-15 12:56:42 -07:00
Dustin Carlino
4e83f492d8
upgrade rand, get rid of now unneeded serde1 feature, in hopes of fixing feature mismatch between deps
2019-08-15 12:14:35 -07:00
Dustin Carlino
56ea90c787
draw map-space text with proper z-ordering
2019-08-15 10:30:17 -07:00
Dustin Carlino
cd8a2eb65c
force GUI logic to handle selecting ped crowds by making a new ID
2019-08-14 15:35:40 -07:00
Dustin Carlino
0379ceae11
prep for ID::PedCrowd... make ID not be Copy
2019-08-14 15:19:14 -07:00
Dustin Carlino
caddf69dcc
cache unzoomed agent geometry when possible
2019-08-14 14:44:43 -07:00
Dustin Carlino
39b97acbbd
experiments in representing overlapping pedestrians. buggy start.
2019-08-14 14:26:48 -07:00
Dustin Carlino
a3cd03a5bc
rephrase time_since_last_turn as time_spent_blocked, so things like pedestrians walking on long roads don't show up as spurious gridlockedness
2019-08-13 14:26:45 -07:00
Dustin Carlino
4c7c9156d0
label buses with route number!
2019-08-13 12:50:14 -07:00
Dustin Carlino
e145ae2e5d
label buildings with street numbers. disable because it's noisy, but
...
great start!
2019-08-13 11:45:11 -07:00
Dustin Carlino
c50830c4c0
add an extra scaling factor to map-space text, so we can draw in a reasonable font size, then squish down without losing quality
2019-08-13 11:24:04 -07:00
Dustin Carlino
5dc92e6eb8
strong steps towards real map-space text. not quite working yet, but
...
this shouldn't break anything in the meantime.
2019-08-12 15:38:57 -07:00
Dustin Carlino
6950c22394
simplify rules for starting a turn through a stop sign. should retain priority, but be opportunistic when higher-ranked agents are actually blocked
2019-08-12 14:43:13 -07:00
Dustin Carlino
784e076aff
fixes for 'dont block the box'... handle cars vanishing at borders
2019-08-12 14:14:15 -07:00
Dustin Carlino
51cfd49a43
unstick a poor pedestrian who couldn't cross a SharedSidewalkCorner in
...
the signal time. be reasonably loud when a turn is impossible to finish
in the cycle duration.
2019-08-12 12:37:29 -07:00
Dustin Carlino
a37b3fe58c
part 1 of of 'dont block the box'. disabled, because something's broken,
...
but a solid start.
2019-08-11 19:24:13 -07:00
Dustin Carlino
1ca1f571d0
disable savestating every 30m by default in the UI. greatly speeds up
...
simulation. not sure how to let people change this setting reasonably.
2019-08-10 15:25:30 -07:00
Dustin Carlino
b8489cbea8
switched sim scheduler to a proper BinaryHeap + tracker for valid time
...
of a command. approximately 3x speedup in release mode -- simulating
midnight -> 5am for full psrc day on 23rd goes from ~30s to ~9s!!!
further optimization definitely possible
2019-08-09 16:09:13 -07:00
Dustin Carlino
758c5494d8
remove old unused deps
2019-08-09 13:34:40 -07:00
Dustin Carlino
38ea097b26
use WizardState for some more things, making proper use of bundling state with closures!
2019-08-08 11:17:53 -07:00
Dustin Carlino
02e850f3d7
using WizardState in ChoosingShortcut, now that wizard closures are solid
2019-08-07 15:56:07 -07:00
Dustin Carlino
e5486e587b
renaming wizard things
2019-08-07 15:48:46 -07:00
Dustin Carlino
8c7116af97
heavily revamping wizard callers... wow, what a huge difference!
2019-08-07 15:27:25 -07:00
Dustin Carlino
3b1671fdcb
proof-of-concept that wizard closures can have reasonable lifetimes!
2019-08-07 14:53:20 -07:00
Dustin Carlino
adde2669c1
convert some old-school plugins to Wizard (in fact WizardState), and start to hide some stuff inside ezgui crate a bit more
2019-08-07 13:49:27 -07:00
Dustin Carlino
f26ab131e6
more easy WizardState conversion
2019-08-07 13:27:18 -07:00
Dustin Carlino
136ca2d7ab
refactoring a WizardState to replace LOTS of boilerplate. converting
...
some easy first cases
2019-08-07 11:45:06 -07:00
Dustin Carlino
950fb65bea
visually expose time since last completed turn
2019-08-07 10:37:25 -07:00