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