Commit Graph

1477 Commits

Author SHA1 Message Date
Dustin Carlino
a52bea9835 some steps to closing off incomplete areas better... mostly stuff to
quickly iterate on this problem later
2019-02-15 09:03:02 -08:00
Dustin Carlino
0c81234b56 script to reimport and reprecompute a single map. add golf course areas. 2019-02-14 19:05:29 -08:00
Dustin Carlino
b366a2dccd mouseover areas by flag 2019-02-14 18:42:24 -08:00
Dustin Carlino
134756fb22 simplify DrawLane a bit 2019-02-14 18:29:36 -08:00
Dustin Carlino
1fb3739c71 remove unnecessary flags; buildings and areas are always fast to draw now 2019-02-14 17:57:15 -08:00
Dustin Carlino
7fb9f721e1 store Area as a Polygon natively in Map 2019-02-14 17:35:34 -08:00
Dustin Carlino
cfe9a8d662 dont redraw stuff that gets drawn anyway in the big batch 2019-02-14 17:27:41 -08:00
Dustin Carlino
f37415bfaa fundamentally different behavior when zoomed in vs not 2019-02-14 17:14:01 -08:00
Dustin Carlino
65307e66f5 batch all parcels too 2019-02-14 16:56:33 -08:00
Dustin Carlino
e445f972dd move ToggleableLayers out of ezgui, stop associating a zoom with them 2019-02-14 16:51:27 -08:00
Dustin Carlino
c3cbd47645 organize DES model code a bit 2019-02-14 14:00:44 -08:00
Dustin Carlino
06c8ed72a9 flag-based profiling of GUI 2019-02-14 13:16:43 -08:00
Dustin Carlino
ee16c864c5 batch layers of stuff together to reduce draw calls. helps performance
MASSIVELY when zoomed out.
2019-02-14 12:37:33 -08:00
Dustin Carlino
b40770edae adjust clipping instead of leaving stuff in sometimes 2019-02-12 15:56:23 -08:00
Dustin Carlino
a2e2c3311e drawing border arrows way better 2019-02-12 14:42:03 -08:00
Dustin Carlino
adcf5ca2a8 tune min zoom levels a bit 2019-02-12 13:09:36 -08:00
Dustin Carlino
f91fbb67d6 remove duplicated polygon from DrawBuilding by passing in map 2019-02-12 12:37:29 -08:00
Dustin Carlino
b8eec25116 store Polygon in Building natively 2019-02-12 12:28:12 -08:00
Dustin Carlino
21ddbc2ecc very primitive breakdown of where memory is going 2019-02-12 12:11:10 -08:00
Dustin Carlino
e8b80526ae making a separate DrawRoad. thick bands at low zoom, yellow center line at high zoom. 2019-02-12 09:16:33 -08:00
Dustin Carlino
9ea7493483 handle border nodes being bidirectional. also only assign borders during
convert_osm. still disabled... am confused. some hacks to make things
work in the meantime.
2019-02-11 23:25:39 -08:00
Dustin Carlino
4dd7dabde5 display boundary polygon, actually 2019-02-11 22:24:19 -08:00
Dustin Carlino
e68d6225c8 clipping roads based on original boundary polygons. buggy, so disabled. 2019-02-11 22:13:49 -08:00
Dustin Carlino
5d30a90810 draw border nodes with nice big arrows 2019-02-11 17:45:50 -08:00
Dustin Carlino
6da48c28c1 making small_seattle fully convert, with some less messy hacks. added it
as a test!
2019-02-11 16:13:29 -08:00
Dustin Carlino
a3b03952cf dont depend on sim in precompute crate 2019-02-11 15:53:48 -08:00
Dustin Carlino
e2de3e208c use FindClosest quadtree helper for residential bldg permit matching 2019-02-11 15:35:06 -08:00
Dustin Carlino
0a3f2676f0 more timer measurements for convert_osm, and make sure to erase
precomputed maps when re-converting a map
2019-02-11 14:22:05 -08:00
Dustin Carlino
6a573dfbd0 use better glium buffer types 2019-02-11 14:08:43 -08:00
Dustin Carlino
d655bdc588 pass color to GPU as u8, not f32 2019-02-11 13:52:17 -08:00
Dustin Carlino
ea3170a9a9 make more multipolygons work by dealing with closed ways 2019-02-11 13:08:18 -08:00
Dustin Carlino
72e823c2c6 only have one Prerender object constructed, simplifying the plumbing of the Cell counters 2019-02-11 12:14:43 -08:00
Dustin Carlino
1d3e4284a7 do some tracking of video memory used by RenderMap 2019-02-11 12:02:29 -08:00
Dustin Carlino
195d077c98 flags to disable drawing some expensive stuff, to make debugging small_seattle a bit easier 2019-02-11 11:31:25 -08:00
Dustin Carlino
8b6a863b60 print timer iterations and durations more legibly 2019-02-11 11:16:07 -08:00
Dustin Carlino
8693bbc1e3 import residential building dataset 2019-02-10 19:24:34 -08:00
Dustin Carlino
e186b24dac very primitive building type classification, with coloring 2019-02-10 17:38:46 -08:00
Dustin Carlino
606340e2db switch to bincode. almost half file size, reading small_seattle went
from 40s to 7s in debug mode!!!
2019-02-10 16:20:44 -08:00
Dustin Carlino
ec01207369 try upgrading rand and serde again 2019-02-10 15:57:28 -08:00
Dustin Carlino
51399e19ed organize convert_osm lib better. also make clippy build everything
again.
2019-02-10 15:52:21 -08:00
Dustin Carlino
8139cf2113 disable mouseover for areas, now that they work pretty well 2019-02-10 14:46:13 -08:00
Dustin Carlino
c6229e0de6 make cemeteries and lake washington (with inner ways) work 2019-02-10 14:45:38 -08:00
Dustin Carlino
1fc0efb639 woops, forgot to make bus stop prerender. also make it use nicer
polyline slice()
2019-02-10 12:49:36 -08:00
Dustin Carlino
8eaf09034f handle mulitpolygons with incomplete clipped info 2019-02-09 21:48:21 -08:00
Dustin Carlino
f693316290 parse OSM multipolygons, like bodies of water, correctly, when they're
completely present in the .osm
2019-02-09 21:03:44 -08:00
Dustin Carlino
0f1d0d24ca prerender areas and be able to debug their geometry 2019-02-09 19:25:27 -08:00
Dustin Carlino
9d450363ea be able to launch DES model on any lane 2019-02-09 18:38:44 -08:00
Dustin Carlino
f7d3db302d make simple model an exclusive blocking plugin, since it otherwise eats keys :) 2019-02-09 13:40:47 -08:00
Dustin Carlino
e00d85e1c0 split out Plugin trait into a few types... 2019-02-09 12:59:15 -08:00
Dustin Carlino
21e869cb0e rename Ctx to DrawCtx 2019-02-09 11:52:43 -08:00