Constants.h 535 B

12345678910111213141516171819
  1. #pragma once
  2. // needs to be an even number
  3. #define CHUNK_SIZE 16
  4. #define WORLD_HEIGHT 500
  5. #define BIOM_GENERATION_Z_OFFSET 100
  6. #define AIR_LEVEL_Z_OFFSET 99
  7. #define MIN_AIR_LEVEL 50
  8. #define MAX_AIR_LEVEL 450
  9. #define NUM_TICK_WORKERS 4
  10. #define ITEM_CACHE_SIZE 256
  11. #ifdef _DEBUG
  12. # define DEFAULT_VIEW_DISTANCE 2
  13. #else
  14. # define DEFAULT_VIEW_DISTANCE 64
  15. #endif
  16. #define MAX_SURFACE_HEIGHT 50
  17. #define VARIABLE_SURFACE_PART 0.5f
  18. #define MAX_TICKS_PER_SECOND 20