Showing the changes to interface/src/Application.cpp (1 of 31 files). Show all
Unified · Split
| @@ -72,8 +72,8 @@ · 71 unmodified lines | |||
| 72 | using namespace std; | 72 | using namespace std; |
| 73 | 73 | ||
| 74 | // Starfield information | 74 | // Starfield information |
| 75 | static char STAR_FILE[] = "http://s3-us-west-1.amazonaws.com/highfidelity/stars.txt"; | 75 | static unsigned STARFIELD_NUM_STARS = 50000; |
| 76 | static char STAR_CACHE_FILE[] = "cachedStars.txt"; | 76 | static unsigned STARFIELD_SEED = 1; |
| 77 | 77 | ||
| 78 | static const int BANDWIDTH_METER_CLICK_MAX_DRAG_LENGTH = 6; // farther dragged clicks are ignored | 78 | static const int BANDWIDTH_METER_CLICK_MAX_DRAG_LENGTH = 6; // farther dragged clicks are ignored |
| 79 | 79 | ||
| @@ -2491,8 +2491,8 @@ void Application::displaySide(Camera& whichCamera) { · 2411 unmodified lines | |||
| 2491 | if (Menu::getInstance()->isOptionChecked(MenuOption::Stars)) { | 2491 | if (Menu::getInstance()->isOptionChecked(MenuOption::Stars)) { |
| 2492 | PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), | 2492 | PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), |
| 2493 | "Application::displaySide() ... stars..."); | 2493 | "Application::displaySide() ... stars..."); |
| 2494 | if (!_stars.getFileLoaded()) { | 2494 | if (!_stars.isStarsLoaded()) { |
| 2495 | _stars.readInput(STAR_FILE, STAR_CACHE_FILE, 0); | 2495 | _stars.generate(STARFIELD_NUM_STARS, STARFIELD_SEED); |
| 2496 | } | 2496 | } |
| 2497 | // should be the first rendering pass - w/o depth buffer / lighting | 2497 | // should be the first rendering pass - w/o depth buffer / lighting |
| 2498 | 2498 | ||