boot_config.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. boot.config reference
  2. =====================
  3. Generic configurations
  4. ----------------------
  5. ``boot_script = "lua/game"``
  6. Lua script to launch on boot.
  7. ``boot_package = "boot"``
  8. Package to load on boot.
  9. ``render_config = "core/renderer/default"``
  10. Render configuration to use.
  11. ``window_title = "My window"``
  12. Title of the main window on platforms that support it.
  13. Platform-specific configurations
  14. --------------------------------
  15. All configurations for a given *platform* are placed under a key named *platform*. E.g.:
  16. .. code::
  17. // Linux-only configs
  18. linux = {
  19. renderer = {
  20. resolution = [ 1280 720 ]
  21. aspect_ratio = -1
  22. vsync = true
  23. }
  24. }
  25. Renderer configurations
  26. ~~~~~~~~~~~~~~~~~~~~~~~
  27. ``resolution = [ 1280 720 ]``
  28. Sets the width and height of the main window.
  29. ``aspect_ratio = -1``
  30. Sets the aspect ratio.
  31. If the value is set to ``-1``, the aspect ratio is computed as ``width/height`` of the main window.
  32. ``vsync = true``
  33. Sets whether to enable the vsync.
  34. ``fullscreen = false``
  35. Sets whether to enable fullscreen.
  36. Physics configurations
  37. ~~~~~~~~~~~~~~~~~~~~~~
  38. ``step_frequency = 60``
  39. The frequency at which the physics simulation is stepped.
  40. Higher values means a more accurate simulation at the expense of compute time.
  41. ``max_substeps = 4``
  42. Maximum number of physics sub-steps allowed in a frame.
  43. A value of 4 at 60 Hz means the physics simulation is allowed to simulate up to ~0.067 seconds (4/60) worth of physics per frame.
  44. If one frame takes longer than ``max_substeps/step_frequency`` then physics will appear slowed down.