aboutsummaryrefslogtreecommitdiff
path: root/main/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix vsync initializationChaosus2018-06-251-0/+2
|
* The build-solutions flag now forces editor mode.Nathan Warden2018-06-151-0/+1
|
* Removed unused AudioServer::update functionMarcelo Fernandez2018-06-151-3/+0
|
* Add cli paramerter --check-only for script parsingTimur Celik2018-05-311-0/+8
|
* Revert "Make the performance reporting update frequency customizable"Juan Linietsky2018-05-281-13/+5
|
* Merge pull request #18998 from Calinou/customizable-performance-reporting-rateMax Hilbrunner2018-05-261-5/+13
|\ | | | | Make the performance reporting update frequency customizable
| * Make the performance reporting update frequency customizableHugo Locurcio2018-05-181-5/+13
| | | | | | | | The default update frequency has been changed from 1000ms to 250ms.
* | Only add autoloads in editor if they have tool scriptsGeorge Marques2018-05-221-24/+1
|/
* -New inspector.Juan Linietsky2018-05-151-225/+9
| | | | | | | -Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
* Merge pull request #18545 from vnen/editor-autoloadJuan Linietsky2018-05-141-86/+108
|\ | | | | Enable autoload in editor
| * Enable autoload in editorGeorge Marques2018-05-011-86/+108
| | | | | | | | | | | | - Tool scripts will be executed and can be accessed by plugins. - Other script languages can implement add/remove_named_global_constant to make use of this functionality.
* | Change reused variable name in command line parsingLeon Krause2018-05-121-6/+6
| |
* | Remove dead branch in command line logicLeon Krause2018-05-121-16/+1
| |
* | Revert "Fix custom resource path look-up per command line"Leon Krause2018-05-121-4/+1
| | | | | | | | This reverts commit 942f6dfbd66c1d15a45ef6447fd883103d9678a8.
* | Merge pull request #18770 from eska014/cmdlineRémi Verschelde2018-05-111-3/+6
|\ \ | | | | | | Command line fixes
| * | Fix help/man for --export and --export-debugLeon Krause2018-05-101-2/+2
| | |
| * | Fix custom resource path look-up per command lineLeon Krause2018-05-101-1/+4
| | |
* | | Fix setting for pointing emulationvolzhs2018-05-101-2/+2
|/ / | | | | | | | | | | Fix #18582 GLOBAL_DEF("input/something") is treated as Input Map setting, not as General.
* | Merge pull request #14622 from bruvzg/non-rectangular-windowsHein-Pieter van Braam2018-05-081-0/+5
|\ \ | | | | | | Experimental support for windows with per-pixel transparency.
| * | Experimental support for windows with per-pixel transparency (macOS, X11 and ↵bruvzg2018-04-071-0/+5
| | | | | | | | | | | | Windows).
* | | Local debugger fixes and extensionsBlazej Floch2018-05-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup
* | | Merge pull request #17353 from zmanuel/timer_hysteresis_multiframe_pr1Juan Linietsky2018-05-071-15/+238
|\ \ \ | | | | | | | | Use hysteresis for smoother physics update frequency
| * | | Add hysteresis to physics timestep count per frameManuel Moos2018-04-091-15/+238
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new class _TimerSync to manage timestep calculations. The new class handles the decisions about simulation progression previously handled by main::iteration(). It is fed the current timer ticks and determines how many physics updates are to be run and what the delta argument to the _process() functions should be. The new class tries to keep the number of physics updates per frame as constant as possible from frame to frame. Ideally, it would be N steps every render frame, but even with perfectly regular rendering, the general case is that N or N+1 steps are required per frame, for some fixed N. The best guess for N is stored in typical_physics_steps. When determining the number of steps to take, no restrictions are imposed between the choice of typical_physics_steps and typical_physics_steps+1 steps. Should more or less steps than that be required, the accumulated remaining time (as before, stored in time_accum) needs to surpass its boundaries by some minimal threshold. Once surpassed, typical_physics_steps is updated to allow the new step count for future updates. Care is taken that the modified calculation of the number of physics steps is not observable from game code that only checks the delta parameters to the _process and _physics_process functions; in addition to modifying the number of steps, the _process argument is modified as well to stay in expected bounds. Extra care is taken that the accumulated steps still sum up to roughly the real elapsed time, up to a maximum tolerated difference. To allow the hysteresis code to work correctly on higher refresh monitors, the number of typical physics steps is not only recorded and kept consistent for single render frames, but for groups of them. Currently, up to 12 frames are grouped that way. The engine parameter physics_jitter_fix controls both the maximum tolerated difference between wall clock time and summed up _process arguments and the threshold for changing typical_physics_steps. It is given in units of the real physics frame slice 1/physics_fps. Set physics_jitter_fix to 0 to disable the effects of the new code here. It starts to be effective against the random physics jitter at around 0.02 to 0.05. at values greater than 1 it starts having ill effects on the engine's ability to react sensibly to dropped frames and framerate changes.
* | | Merge pull request #17196 from RandomShaper/improve-gui-touchRémi Verschelde2018-05-021-6/+9
|\ \ \ | |_|/ |/| | Implement universal translation of touch to mouse (3.1)
| * | Implement universal translation of touch to mousePedro J. Estébanez2018-04-301-6/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*) The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers. Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse. *: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest. On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction. Plus: Improve/fix tracking of current mouse position. ** Summary of changes to settings: ** - `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse` - New setting: `input/pointing_devices/emulate_mouse_from_touch`
* | Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-04-221-3/+3
| |
* | Enable DynamicFont oversampling by defaultHugo Locurcio2018-04-191-2/+2
|/ | | | | This results in a better DynamicFont appearance when scaled, which is especially noticeable when using the `2d` scaling mode.
* Add --print-fps option to output FPS to stdoutRémi Verschelde2018-03-211-4/+12
| | | | | | | | | Works both for the editor and games. Projects can still use "debug/settings/stdout/print_fps" to enable it permanently. The --print-fps option takes precedence (so works even if the project setting is disabled). That setting is also no longer redefined on the fly based on the verbose flag, that was a mess.
* Fix debugger_stdout_settings being ignoredBernhard Liebl2018-03-151-13/+13
|
* Fix `--help` output, allow renderer override from command line ↵bruvzg2018-03-021-2/+5
| | | | (`--video-driver`).
* Allow running with a custom resource without a main sceneHein-Pieter van Braam2018-02-261-15/+16
| | | | | | | | | | | After 3f8a4cc7193e964f716fde2cd28a946669e2d8d6 trying to run an individual scene on a project without a main scene fails. We move the check until after we've determined whether or not we're trying to run an individual scene. We also stop trying to show the project manager if any game pack is found at all, unless the user explicitly asks for the project manager to be shown.
* Add --quit option to help output and update manpageRémi Verschelde2018-02-241-2/+3
|
* Refactor version macros and fix related bugsRémi Verschelde2018-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were several places hardcoding their own variant of the version string, potentially with bugs (e.g. forgetting the patch number when defined). The new logic defines: - VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1) - VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch', depending on whether the latter is defined (e.g. 3.1.4) - VERSION_FULL_CONFIG, which contains the version status (e.g. stable) and the module-specific suffix (e.g. mono) - VERSION_FULL_BUILD, same as above but with build/reference name (e.g. official, custom_build, mageia, etc.) Note: Slight change here, as the previous format had the build name *before* the module-specific suffix; now it's after - VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed with "Godot v" for readability Bugs fixed thanks to that: - Export templates version matching now properly takes VERSION_PATCH into account by relying on VERSION_FULL_CONFIG. - ClassDB hash no longer takes the build name into account, but limits itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant for the API hash). - Docs XML no longer hardcode the VERSION_STATUS, this was annoying. - Small cleanup in Windows .rc file thanks to new macros.
* Added an auto quit and auto build flag to the command line options.Nathan Warden2018-02-191-1/+18
|
* Prevent loading project-specific config in Project ManagerRémi Verschelde2018-02-191-28/+21
| | | | | | | The Project Manager should share the same settings as the editor most of the time. The whole init stuff with Main::setup and Main::start needs a good cleanup though. Fixes #15199.
* Merge pull request #16749 from PJB3005/18-02-16-project-manager-mono-debug-fixIgnacio Etcheverry2018-02-181-1/+6
|\ | | | | Makes project manager never initialize mono debug.
| * Makes project manager never initialize mono debug.Pieter-Jan Briers2018-02-161-1/+6
| | | | | | | | | | | | | | | | The heuristic whether we're in the project manager inside GDMono didn't work if the project manager was launched by not having any path to run. This is fixed now by making a Main::is_project_manager().
* | Ignore tools CLI flags in non-tools builds.Pieter-Jan Briers2018-02-171-5/+11
|/ | | | | | Some flags were still parsed but either did nothing or broke everything. No reason to parse them.
* Merge pull request #15564 from RandomShaper/adpod-topmostRémi Verschelde2018-02-141-0/+10
|\ | | | | Add new window setting: always on top
| * Add new window setting: always on topPedro J. Estébanez2018-01-051-0/+10
| | | | | | | | Implemented for Windows and Linux.
* | Merge pull request #15741 from paulloz/bug-no-main-sceneRémi Verschelde2018-02-141-0/+9
|\ \ | | | | | | Fix bug when launching a game with no main scene
| * | Fix bug when launching a game with no main scenePaul Joannon2018-01-151-0/+9
| | | | | | | | | | | | Check for a main scene after loading project settings and exit if there's none (except if launching in editor mode).
* | | Always detect and use hiDPI in the project manager if neededHugo Locurcio2018-02-131-8/+23
| | | | | | | | | | | | This makes its hiDPI behavior consistent with the editor.
* | | Print FPS setting now only prints the game FPSZephilinox2018-01-231-1/+1
| | |
* | | Rename Fixed Fps to Physics Fps on Project Settingsvolzhs2018-01-231-1/+1
| | | | | | | | | | | | Fixes #15981
* | | Fix typos in code and docs with codespellRémi Verschelde2018-01-181-1/+1
| | | | | | | | | | | | Using v1.11.0 from https://github.com/lucasdemarchi/codespell
* | | Fix crash when closing the editorMariano Suligoy2018-01-161-3/+3
|/ /
* | Destroy AudioServer after other non-core types are unregisteredRuslan Mustakov2018-01-111-5/+5
| | | | | | | | | | | | | | This is important for some GDNative bindings and probably for Mono. They may keep references to audio objects which are freed when they are unregistered. If AudioServer is already deleted at that point, it causes segfaults.
* | Merge pull request #15297 from poke1024/runner-limit-errsRémi Verschelde2018-01-071-0/+2
|\ \ | |/ |/| Limit number of errors and messages sent by runner
| * Limit number of errors and messages sent by runnerBernhard Liebl2018-01-031-0/+2
| |