From 99eb89f5542b05ceaf6ccbdeb66afe47179f1f9a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 14 Jan 2019 12:37:41 +0100 Subject: [PATCH] fixed fps on large map --- citizen.pde | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/citizen.pde b/citizen.pde index c45aa23..470c15b 100644 --- a/citizen.pde +++ b/citizen.pde @@ -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();