Commit Graph

2166 Commits

Author SHA1 Message Date
Dustin Carlino
36b3558db5 share agent following and route tools also 2019-06-24 14:38:37 -07:00
Dustin Carlino
b9c9a77f40 share time stepping controls btwn sandbox and abtest mode 2019-06-24 14:03:44 -07:00
Dustin Carlino
e137fcf15c refactor mouseover recalculation for the common case 2019-06-24 13:31:04 -07:00
Dustin Carlino
17460b1deb use debug mode's special baselayer drawing 2019-06-24 10:28:32 -07:00
Dustin Carlino
8c67267d28 moving time traveler over to new stackable state model. and with that,
the stackable state model is good enough!
2019-06-23 18:57:45 -07:00
Dustin Carlino
6905595a05 less work for the default InputOnly 2019-06-23 17:25:41 -07:00
Dustin Carlino
fe38f2ff97 move secondary to UI, fixing two things that needed access 2019-06-23 16:54:34 -07:00
Dustin Carlino
eac7be2028 recalculate mouseover when unhiding stuff in debug mode. can do this now
that we're not borrowing the world.
2019-06-23 09:56:02 -07:00
Dustin Carlino
e67305d084 a way to pop states and pass data back 2019-06-22 20:37:01 -07:00
Dustin Carlino
3958ec556e state transitions for nicely handling a few things... in particular,
clearing splash screen wizard state so we dont get stuck on a choice ;)
2019-06-22 20:05:12 -07:00
Dustin Carlino
551866169a make Warp and Navigate use nested states inside CommonState 2019-06-22 18:24:46 -07:00
Dustin Carlino
8250bd5a1e restore jumping to time in sandbox 2019-06-22 18:07:39 -07:00
Dustin Carlino
965a458b15 move state stuff into game.rs too 2019-06-22 17:04:23 -07:00
Dustin Carlino
6c6299c1d0 moving splash screen code to its own file 2019-06-22 13:57:38 -07:00
Dustin Carlino
665ba52d63 convert tutorial mode 2019-06-22 13:51:15 -07:00
Dustin Carlino
281a0ffcb9 converting mission mode 2019-06-22 13:42:11 -07:00
Dustin Carlino
859429a493 converting abtest mode 2019-06-22 12:59:21 -07:00
Dustin Carlino
6f2f6a3a75 converting editmode over 2019-06-22 11:36:17 -07:00
Dustin Carlino
f86e9666d5 convert DebugMode to stackable states 2019-06-22 10:30:40 -07:00
Dustin Carlino
a451c06d46 proof of concept for stackable game states. most things in splash screen
and sandbox mode converted. already feeling MUCH cleaner.
2019-06-21 16:01:07 -07:00
Dustin Carlino
0711056d89 save and restore savestates for entire a/b tests. launching from scratch
takes 33s in debug, this takes 19s
2019-06-21 12:47:00 -07:00
Dustin Carlino
284a0f8c69 dont start crossing a traffic signal if the timer will run out. optimistically move at full speed. 2019-06-20 15:36:31 -07:00
Dustin Carlino
1ce616b0be recenter when loading a different map 2019-06-20 15:19:35 -07:00
Dustin Carlino
6738de2488 draw text beneath Sliders, not in the ModalMenu 2019-06-20 14:48:32 -07:00
Dustin Carlino
220d3d57ab tool to convert to a ped scramble cycle completely 2019-06-20 12:36:26 -07:00
Dustin Carlino
994cdd20ae new release 2019-06-19 14:59:57 -07:00
Dustin Carlino
5a3862dda0 expunge the concept of traffic signals being in overtime. not realistic to how people drive, the current rules allow progress without impacting safety. also disable gridlock detection -- noisy results, easier to visually spot, and slow. 2019-06-19 14:51:09 -07:00
Dustin Carlino
d72aefdc7c add more hints, trying to get a full PSRC day on 23rd to work... 2019-06-19 14:27:53 -07:00
Dustin Carlino
c90073c64a start a very primitive scoreboard for a/b tests 2019-06-19 12:42:16 -07:00
Dustin Carlino
177b33795c adjust building color, update screenshot test 2019-06-18 16:34:28 -07:00
Dustin Carlino
91cc74a30c dramatically slash the one-time preparation time for the 3 VehiclePathfinders by using the node ordering from one for the other two. this actually also exposed a bug that would eventually muck with recalculating after edits (node IDs depending on the original state of the map) 2019-06-18 16:21:35 -07:00
Dustin Carlino
7a49c585cf remove building_type and stop reading the residential permit shapefile 2019-06-18 14:58:57 -07:00
Dustin Carlino
04021f9fd1 print more complete and robust building names. adjust intersection and
building colors -- stop coloring buildings based on type (adds visual
noise, data is very bad)
2019-06-18 14:47:24 -07:00
Dustin Carlino
1835155a47 dont recalculate pathfinder after every map edit; just once at the end 2019-06-18 14:28:14 -07:00
Dustin Carlino
c2576b9ad7 disable path validation. 2.8s down to an even 2s. 2019-06-18 10:53:45 -07:00
Dustin Carlino
cdda463ee4 speed up pathfinding queries even more by reusing the PathCalculator
each thread
2019-06-18 10:25:35 -07:00
Dustin Carlino
a7b10b7ec5 collapsing load/create scenario options directly into mission mode 2019-06-18 06:36:20 -07:00
Dustin Carlino
a6aa46dd61 cutover driving pathfinding to fastpaths, using a full lane graph for driving instead of falling back when path stitching fails. handle edits by preparing the CH again, using the existing node ordering. one-time prep time is reasonable, recalculating works for live edit mode, and queries are FAST! :O 2019-06-17 19:16:04 -07:00
Dustin Carlino
cdacaef1a6 refactor menu text for all ItemSliders 2019-06-17 17:22:20 -07:00
Dustin Carlino
22db36c0f4 use a sparser, more obvious representation for walking_with_transit.
cuts prep time down to reasonable levels for everything.
2019-06-17 16:08:31 -07:00
Dustin Carlino
b4de820f56 make interactively spawned peds use transit if possible, to figure out
why the walking-with-transit graph is not working... argh which is
because map initialization order has so many funky dependencies
2019-06-17 15:32:49 -07:00
Dustin Carlino
4951eea644 cutover walking (with and without transit) pathfinding to fast_paths! 2019-06-17 14:14:30 -07:00
Dustin Carlino
ace3f0d285 remove Debug trait from Map and pathfinder -- not used in a long time 2019-06-17 12:14:16 -07:00
Dustin Carlino
58d056cdbc remove paranoia panic for an anticipated case with hints 2019-06-17 10:45:54 -07:00
Dustin Carlino
ecaa8bea53 use slider to browse hints 2019-06-16 14:31:19 -07:00
Dustin Carlino
efb6954a97 refactor the combination of ItemSlider and Warper 2019-06-14 14:17:08 -07:00
Dustin Carlino
8c055312b4 refactor Warper to an ezgui widget, to use it in fix_map_geom 2019-06-14 12:45:46 -07:00
Dustin Carlino
b2874193ec limit the amount of realtime spent on sim step when running live. that way, if speed is too high, the UI doesnt seem to just freeze 2019-06-14 12:28:13 -07:00
Dustin Carlino
1523f3ec7f WIP rewrite of the a/b street features page, adjust colors in
fix_map_geom, add some simple hints (23rd and madison in particular),
make merging degenerate intersections easier by showing OSM tag diff
2019-06-14 12:11:35 -07:00
Dustin Carlino
0acfc84c3c browse trips in scoreboard 2019-06-13 17:19:50 -07:00