summaryrefslogtreecommitdiffstats
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
* Platform: Ensure classes match their header filenameRémi Verschelde2019-02-1249-478/+264
| | | | | | | | | | | | | | | | | | | | Also drop some unused files. Renamed: - `platform/iphone/sem_iphone.h` -> `semaphore_iphone.h` (same for `osx`) - `platform/uwp/gl_context_egl.h` -> `context_egl_uwp.h` - in `platform/windows`: `context_gl_win.h`, `crash_handler_win.h`, `godot_win.cpp`, `joypad.h` and `key_mapping_win.h` all renamed to use `windows`. Some classes renamed accordingly too. - `EditorExportAndroid` and `EditorExportUWP` renamed to `EditorExportPlatformAndroid` and `EditorExportPlatformUWP` - `power_android` and `power_osx` renamed to `PowerAndroid` and `PowerOSX` - `OSUWP` renamed to `OS_UWP` Dropped: - `platform/windows/ctxgl_procaddr.h`
* Drivers, main, servers: Ensure classes match their header filenameRémi Verschelde2019-02-123-6/+7
| | | | | | | | Renamed: - `drivers/alsamidi/alsa_midi.h` -> `midi_driver_alsamidi.h` (same for `coremidi` and `winmidi`) - `main/timer_sync.h` -> `main_timer_sync.h` - `servers/visual/visual_server_global.h` -> `visual_server_globals.h`
* Merge pull request #25481 from hpvb/fix-ubsan-asan-reportsRémi Verschelde2019-02-121-1/+5
|\ | | | | Fix many asan and ubsan reported issues
| * Fix many asan and ubsan reported issuesHein-Pieter van Braam2019-01-301-1/+5
| | | | | | | | | | | | | | | | | | This allows most demos to run without any ubsan or asan errors. There are still some things in thirdpart/ and some things in AudioServer that needs a look but this fixes a lot of issues. This should help debug less obvious issues, hopefully. This fixes #25217 and fixes #25218
* | Merge pull request #25570 from Kanabenki/windows-relative-iconRémi Verschelde2019-02-081-2/+2
|\ \ | | | | | | Use relative path property hint for windows export icon
| * | Use relative path property hint for windows export iconKanabenki2019-02-031-2/+2
| |/
* | Merge pull request #25521 from bruvzg/disabled_hidpi_retina_fixRémi Verschelde2019-02-081-1/+3
|\ \ | | | | | | [macOS] Fix rendering on retina displays with HiDPI support disabled.
| * | [macOS] Fix rendering on retina displays with HiDPI support disabled.bruvzg2019-01-311-1/+3
| |/
* | Merge pull request #25478 from neikeq/rrIgnacio Etcheverry2019-02-034-0/+12
|\ \ | |/ |/| Mono: Fix MonoPosixHelper not being found
| * Added set_environment to OS classIgnacio Etcheverry2019-02-034-0/+12
| |
* | Merge pull request #25391 from hpvb/fix-dri-prime-detectRémi Verschelde2019-01-294-21/+281
|\ \ | | | | | | Properly detect when to use DRI_PRIME
| * | Properly detect when to use DRI_PRIMEHein-Pieter van Braam2019-01-284-21/+281
| |/ | | | | | | | | | | | | | | | | | | | | | | | | We fork off twice once with and once without DIR_PRIME=1 set. We then use the vendor string to determine what GPU to use. We prefer (in order) 1) AMDGPU/AMDGPU-PRO/NVidia non-free driver 2) Intel driver 3) Nouveau 4) Software rendering If a driver can't be detected it will default to DRI_PRIME=0
* | Using DisplayLink to emulate vsync on OSXBastiaan Olij2019-01-293-15/+60
| |
* | Remove unused iostream includesRémi Verschelde2019-01-281-6/+1
|/
* Fix pixelized previews, but also instances of breaking ImageTexture cache. ↵Juan Linietsky2019-01-271-0/+5
| | | | Closes #25378.
* Fix code style issuesRémi Verschelde2019-01-261-1/+0
|
* Merge pull request #25300 from neikeq/improve-thread-idRémi Verschelde2019-01-261-3/+14
|\ | | | | Improve custom thread numbering for POSIX
| * Improve custom thread numbering for POSIXIgnacio Etcheverry2019-01-251-3/+14
| | | | | | | | We lazily assign new IDs to threads that do not have one. This is the case for threads not created by the Godot API.
* | Merge pull request #25302 from eska014/html5-startupfsRémi Verschelde2019-01-251-1/+14
|\ \ | |/ |/| Allow requesting full screen during start-up in HTML5 platform
| * Allow requesting full screen during start-up in HTML5 platformLeon Krause2019-01-231-1/+14
| |
* | Fix ALT+F4 being ignored with MOUSE_MODE_CAPTURED on WindowsMarcelo Fernandez2019-01-231-0/+7
| |
* | Fix GDI objects leak when setting custom cursorMarcin Zawiejski2019-01-231-0/+3
| | | | | | | | Fixes #19906
* | Set WINVER and _WIN32_WINNT values in VS projectMarcin Zawiejski2019-01-221-2/+2
| | | | | | | | | | While looking into a different issue, I've noticed that Visual Studio Intellisense does not work well for Godot project when using Windows Vista+ APIs (e.g. CreateThreadpool), i.e. it does not recognise the APIs because they are defined in Windows header files for Vista+ only. This is because the WINVER and _WIN32_WINNT symbols don't have their values set in the generated Godot project file. This fixes the problem by setting the values when generating the project file.
* | Raised executable priority on windows to avoid stuter, helps #25162Juan Linietsky2019-01-222-2/+16
|/
* Avoid cyclic iteration check, fixes #24969Juan Linietsky2019-01-222-2/+6
|
* Merge pull request #25178 from marxin/sanitizr-optionsRémi Verschelde2019-01-221-7/+15
|\ | | | | Rename sanitizer option names.
| * Rename sanitizer option names.marxin2019-01-211-7/+15
| | | | | | | | | | | | | | Make the sanitizer names more explicit (use_ubsan, use_asan, use_lsan). Comment has been adjusted to include GCC as supported compiler for these and exclude -fno-omit-frame-pointer option (should not cause any problems).
* | Add function to obtain filesystem type from DirAccess.Juan Linietsky2019-01-212-0/+8
| | | | | | | | Change EditorFileSystem to not use directory modification times on FAT32, fixes #20946
* | ExportDialog: Make error messages translatableRémi Verschelde2019-01-215-62/+45
| | | | | | | | Also fix missing newlines that caused #24202.
* | Deal with Google's HTML5 autoplay policyLeon Krause2019-01-203-0/+16
|/ | | | Resume audio context after mouse, touch or key input.
* Merge pull request #25135 from CakHuri/fix-capabilitesRémi Verschelde2019-01-201-3/+3
|\ | | | | Fixed a typo in 'uwp_device_capabilites'
| * Fixed a typo in 'uwp_device_capabilites'M. Huri2019-01-191-3/+3
| |
* | Merge pull request #25150 from eska014/html5-warningRémi Verschelde2019-01-201-2/+1
|\ \ | | | | | | Fix HTML5 build warning
| * | Refactor OS_JavaScript headerLeon Krause2019-01-201-2/+1
| |/
* / Fix HTML5 gamepad logic for Emscripten 1.38.22 compat breakageLeon Krause2019-01-201-1/+2
|/
* Android: Enable arm64-v8a export by defaultRémi Verschelde2019-01-161-1/+1
| | | | | | | | | | From August 1, 2019, Google Play requires that all new apps and app updates include 64-bit versions, so we enable ARM64 by default. IINM support for x86 and x86_64 is still be optional, so not enabling them out of the box. Part of #25030.
* SCons: Drop unused MPC_FIXED_POINT defineRémi Verschelde2019-01-162-2/+2
|
* Android: Add support for x86_64 architectureRémi Verschelde2019-01-163-5/+19
| | | | | | | Like arm64v8, this is only supported by API 21 and later, so we enforce 21 as min API for x86_64. Part of #25030.
* Fix Android keep screen on working properlyvolzhs2019-01-151-16/+10
|
* Merge pull request #24913 from volzhs/export-ios-templateRémi Verschelde2019-01-111-12/+18
|\ | | | | Make export valid when setting custom packages for iOS
| * Make export valid when setting custom packages for iOSvolzhs2019-01-121-12/+18
| | | | | | | | | | even no templates installed. all others export work as this already.
* | [macOS] Fix missing mouse move event speed.bruvzg2019-01-111-1/+3
|/
* Don't use -ffast-math or other unsafe math optimizationsHein-Pieter van Braam2019-01-096-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Godot supports many different compilers and for production releases we have to support 3 currently: GCC8, Clang6, and MSVC2017. These compilers all do slightly different things with -ffast-math and it is causing issues now. See #24841, #24540, #10758, #10070. And probably other complaints about physics differences between release and release_debug builds. I've done some performance comparisons on Linux x86_64. All tests are ran 20 times. Bunnymark: (higher is better) (bunnies) min max stdev average fast-math 7332 7597 71 7432 this pr 7379 7779 108 7621 (102%) FPBench (gdscript port http://fpbench.org/) (lower is better) (ms) fast-math 15441 16127 192 15764 this pr 15671 16855 326 16001 (99%) Float_add (adding floats in a tight loop) (lower is better) (sec) fast-math 5.49 5.78 0.07 5.65 this pr 5.65 5.90 0.06 5.76 (98%) Float_div (dividing floats in a tight loop) (lower is better) (sec) fast-math 11.70 12.36 0.18 11.99 this pr 11.92 12.32 0.12 12.12 (99%) Float_mul (multiplying floats in a tight loop) (lower is better) (sec) fast-math 11.72 12.17 0.12 11.93 this pr 12.01 12.62 0.17 12.26 (97%) I have also looked at FPS numbers for tps-demo, 3d platformer, 2d platformer, and sponza and could not find any measurable difference. I believe that given the issues and oft-reported (physics) glitches on release builds I believe that the couple of percent of tight-loop floating point performance regression is well worth it. This fixes #24540 and fixes #24841
* Merge pull request #24592 from volzhs/android-etcRémi Verschelde2019-01-041-2/+3
|\ | | | | Make possible to use ETC texture format with GLES3 on Android
| * Make possible to use ETC texture format with GLES3 on Androidvolzhs2018-12-261-2/+3
| | | | | | | | | | Currently, textures are not exported if use ETC on project settings and export project with GLES3. GLES3 should be able to use ETC format also.
* | Merge pull request #24477 from lupoDharkael/nouveauHein-Pieter van Braam2019-01-031-1/+20
|\ \ | | | | | | Don't enable DRI_PRIME if nouveau is loaded
| * | Don't enable DRI_PRIME if nouveau is loadedlupoDharkael2018-12-201-1/+20
| | |
* | | Implements OS_JavaScript::set_custom_mouse_cursorGuilherme Felipe2019-01-032-2/+124
| | |
* | | Update copyright statements to 2019Rémi Verschelde2019-01-01176-351/+351
| | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | Fix missing/malformed license headersRémi Verschelde2019-01-012-0/+2
| | |