EDIT: Strictly speaking, SimCity Classic let you remove the edge tiles of residential plots as long as you didn't destroy the center, allowing you to force low-density suburban areas. </random sim nerdery>
Seeing this running in the browser reinvigorated my wishful excitement for the Citybound project.
 - http://cityboundsim.com/
SimCity for XWindows, released as Micropolis under the GPL: https://code.google.com/p/micropolis/
Ported to 3d: https://github.com/lo-th/3d.city
An initial glance suggests reducing the populationDensityMap is the real solution (aka don't put so many houses next to each other, but spread it out?)? Feel free to dig into it and reply below with findings.
value -= policeStationMap.worldGet(x, y);
when they probably meant to do
value -= policeStationEffectMap.worldGet(x, y);
otherwise, crime is reduced only if there's a police station right there. That's just a guess based on a cursory look, though.
Before the for loop it "smooths" the policeStationMap 3 times. And this is reset every 15 cycles and in the first 8 cycles it re-populates the policeStationMap before performing the crimeScan.
So a cursory investigation it doesn't look good and any policeStation needs to be within 3 to have any effect.
What the simulation should do is never clear the policeStationMap. The policeStationMap is constantly cooling and diffusing and it is only by refreshing where the police stations are is how new energy is introduced into the system (policeStationMap). The simulation doesn't even need to reset the spot on the map when a Tile.POLICESTATION is removed because the value will on its own cool. As an added bonus the simulation doesn't need to waste cpu cycles calling smoothStationMap three times in a row, but only needs to do it once.
Very impressive example of the richness in todays web.
Well done loth!
I'm most impressed by how fresh and clean the graphics are. I've got the original tile expansion sets for Ancient Asia, Future Europe, Future USA, Medieval Times, Moon Colony and Wild West, if anyone is interested in making 3D versions of those, too!
Tried again, it worked for a few games then it got stuck at max cpu usage, after closing the tab.