fixed fps on large map

This commit is contained in:
2019-01-14 12:37:41 +01:00
parent 2f57736208
commit 99eb89f554

View File

@@ -1,7 +1,7 @@
Citizen[] citizen = new Citizen[10];
//settings
boolean b_smallerImage = true; //use a cropped, smaller version of the 1920x1080 image for faster development
boolean b_smallerImage = false; //use a cropped, smaller version of the 1920x1080 image for faster development
boolean b_loadSun = false; //load sun from web-api instead of local json file (local file is adressed to january 4th 2019. might implement a check that downloads today's information only once...
boolean b_drawNodes = false;
boolean b_drawPathLine = false;
@@ -55,15 +55,15 @@ void setup() {
void draw() {
background(255);
image(img_houses, 0, 0, img_houses.width, img_houses.height);
//background(255);
background(img_houses);
//image(img_streets, 0, 0, img_houses.width, img_houses.height);
textSize(7);
textAlign(CENTER);
for (House house : houses) {
house.display();
}
//for (House house : houses) {
// house.display();
//}
if (b_drawNodes) drawNodes();