aboutsummaryrefslogtreecommitdiff
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-2760-60/+60
|
* Re-apply clang-format to all filesRémi Verschelde2017-08-271-1/+1
| | | | Some badly formatted code has managed to pass through our CI...
* RtAudio: Restore previous (incorrect but safer) buffer sizeRémi Verschelde2017-08-271-1/+1
| | | | | See #10683 for a potential better fix, but this close to the 2.1.4 release I am taking the safe route.
* Correct hash behavior for floating point numbersHein-Pieter van Braam2017-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | This backports the work in #7815 and the subsequent fixes in #8393 The following program now works as expected in this branch in both release_debug and debug mode: ```gdscript print(sqrt(-1)) print(sqrt(-1)) var simple1=asin(10.0) var simple2=acos(10.0) print(simple1) print(simple2) ``` And successfully prints -nan 4 times This fixes #9580 and fixes #8925
* Add closest_power_of_2 func and implement mix_rate/latency on OS XMarcelo Fernandez2017-08-184-12/+12
|
* Merge pull request #7912 from RandomShaper/pause-rasterizer-2.1Rémi Verschelde2017-08-172-4/+20
|\ | | | | Implement time scaling for the rasterizer (2.1)
| * Implement time scaling for the rasterizerPedro J. Estébanez2017-03-202-4/+20
| | | | | | | | which affects 3D particles and the TIME uniform
* | Explicitily unsed AI_NUMERICHOST flag to fix HTML5Fabio Alessandrelli2017-08-131-0/+1
| | | | | | | | (cherry picked from commit f863c0ca14111d4bab06604fb4e2bf42fc83f0da)
* | Add missing NULL checks to prevent possible crashes on _add_geometryMarcelo Fernandez2017-08-061-9/+14
| |
* | get_executable_path slight change to make it work under OpenBSDDavid Carlier2017-07-301-2/+2
| | | | | | | | (cherry picked from commit df87ad14d0be851ecdc02e592c3593b696762d26)
* | BuildSystem: generated files have .gen.extPoommetee Ketson2017-06-252-6/+6
| |
* | Merge pull request #9022 from RandomShaper/improve-mem-class-2.1Rémi Verschelde2017-06-171-7/+7
|\ \ | | | | | | Remove mutex-locking from non-debug memory routines (2.1)
| * | Remove mutex-locking from non-debug memory routinesPedro J. Estébanez2017-06-081-7/+7
| | | | | | | | | | | | | | | | | | since the malloc() suite is nowadays thread-safe by itself (from MSVC 2010 you don't even have a non-MT runtime and for POSIX-based OSs it's mandatory by the spec. Bonus: Clear about-to-be-released blocks with a better magic number for better debugging of dangling pointers.
* | | Merge pull request #9100 from RandomShaper/optimize-2d-lighting-2.1Rémi Verschelde2017-06-153-7/+59
|\ \ \ | | | | | | | | Add optimizing AT_LIGHT_PASS builtin to canvas shaders (2.1)
| * | | Add optimizing AT_LIGHT_PASS builtin to canvas shadersPedro J. Estébanez2017-06-153-7/+59
| |/ / | | | | | | | | | | | | | | | This one allows for complex shaders paired with a simple lighting shader to skip code that would otherwise be pointlessly (and wastefully) run during the light pass. You can use `if (AT_LIGHT_PASS) , negated or not, and that will be converted to a preprocessed #if when the shader is compiled. Depending on your game (number of items and lights), this can be a *significant* performance gain, or at least avoids relying on the driver's optimizing abilities.
* | | Merge pull request #9101 from RandomShaper/filtered-texscreen-2.1Rémi Verschelde2017-06-151-4/+7
|\ \ \ | | | | | | | | Add option for filtered texscreen (2.1)
| * | | Add option for filtered texscreenPedro J. Estébanez2017-06-081-4/+7
| |/ /
* | | Fix cherry-picking issues caused by code updatesGeorge Marques2017-06-075-887/+0
| | |
* | | Patch thirdy-party libraries to build for WinRTGeorge Marques2017-06-074-0/+227
| | | | | | | | | | | | | | | | | | - Patch enet code. - Patch OpenSSL code and add shims for unavailable API. - Add extra definition header for Freetype.
* | | Fix drivers coding for WinRTGeorge Marques2017-06-076-29/+34
|/ / | | | | | | | | | | | | - Add a proper function to retrieve IP addresses. - Solve issues with Windows FileAccess and DirAccess to use the same code for WinRT. - Add patches to the GLES2 rasterizer to workaround ANGLE issues.
* | Move other lone thirdparty files to thirdparty/miscRémi Verschelde2017-05-267-2012/+11
| | | | | | | | | | | | | | Also move Box2D ConvexDecomposition contrib code to thirdparty/b2d_convexdecomp. (cherry picked from commit d4029aa51a0f0bce5dc73885af74b592e3aa33b7)
* | Fix local ip addresses (interfaces) detection.Fabio Alessandrelli2017-05-121-4/+11
| | | | | | | | | | | | Ignore non-IP addresses for both windows and unix (cherry picked from commit a1c41be56977e22e953191dd9e90621d09f294cc)
* | Socket helpers now fall back to ipv4 on systems where ipv6 is disabled.Fabio Alessandrelli2017-05-121-1/+9
| | | | | | | | (cherry picked from commit 020f6a7f2082a6039ce6a5b4410dce47f6ea2607)
* | Fix UDP wait() not returning after first received packetFabio Alessandrelli2017-05-121-0/+2
| | | | | | | | (cherry picked from commit 5c6715a291e0e843b56f0a168191b3d89657d43f)
* | Allow non blocking UDP put_packet in C++.Fabio Alessandrelli2017-05-122-1/+37
| | | | | | | | | | | | | | | | - Add blocking mode option to PacketPeerUDP. - put_packet returns ERR_UNAVAILABLE when operation would block. - ENet module uses non-blocking UDP. (cherry picked from commit 5f681d0b0f28cd39bc033c0cdf8eb3cb3a4acbe6)
* | Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-0859-0/+59
| |
* | Merge pull request #8141 from elasota/fix-unshaded-spilloverRémi Verschelde2017-03-271-2/+6
|\ \ | | | | | | Fix renderer sometimes not applying "unshaded" flag (2.1)
| * | Fixed "unshaded" flag not being updated if light_type and ↵elasota2017-03-241-2/+6
| |/ | | | | | | receive_shadows_state didn't change.
* | Fix buffer size check in UDP socket.Fabio Alessandrelli2017-03-221-1/+1
| | | | | | | | | | | | | | We were reserving 12 bytes from the buffer for ip, port, and length, but since IPv6 introduction we should be reserving 24 (IPv6 are 16 bytes) (cherry picked from commit 5dc7c920bf1c4bb160d39e13ad6136d80badd7ae)
* | Use default UDP ring buffer size of 65536 for clientsFabio Alessandrelli2017-03-221-2/+2
| | | | | | | | | | | | | | | | | | We should probably create a specific function for setting the recv buffer anyway. UDP sockets does not need to bind (listen) to be able to call recvfrom. This is especially useful for clients who just call set_send_address and start communicating with a server. (cherry picked from commit 93368571326e3472522669b76998f58aed78864f)
* | Fix bug causing UDP socket to close after the first send if not listeningFabio Alessandrelli2017-03-221-0/+1
| | | | | | | | | | | | The ring buffer for receiving packets was not resized in constructor (cherry picked from commit 68dc969f8ca242d0c4f927a417557288e4b1b75f)
* | Avoid deadlock when writing/reading data on a connecting TCP socketFabio Alessandrelli2017-03-222-10/+5
| | | | | | | | | | | | | | TCP status polling is always performed as non blocking. Trying to put a packet on a connecting socket will fail immediately. (cherry picked from commit fa0cb7da0e096e01476eabef37c225404c7f6f26)
* | Bind to IPv4 on OpenBSD when using wildcardFabio Alessandrelli2017-03-222-0/+8
| | | | | | | | | | | | OpenBSD does not support binding on both IPv4 and IPv6 using the same socket (cherry picked from commit 619e7a2c8ba19d0dc45467e29d9d9aa8b3506ac8)
* | Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli2017-03-224-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - TCP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `connect` -> resolve using best protocol (UNSPEC), socket from address type - UDP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type (to change socket type you must first call `close` it) (cherry picked from commit 88a56ba783d36d52a1023759e69f026b1ae255b4)
* | Implement UDP listen bind addressFabio Alessandrelli2017-03-222-6/+21
| | | | | | | | (cherry picked from commit 2fe4ef66991b483640f59873c22b3af671626ccc)
* | Implement TCP Server bind addressFabio Alessandrelli2017-03-224-11/+29
| | | | | | | | (cherry picked from commit b2839343cab66880f647c77da7b2e1826761776a)
* | Convert validity checks of IP_Address to is_valid method.Fabio Alessandrelli2017-03-223-3/+3
| | | | | | | | (cherry picked from commit 98a7e2b4e09791705cd9dfd4d13611bc02fe47d4)
* | Avoid calling close when polling a UDP peer without socketFabio Alessandrelli2017-03-221-0/+4
| | | | | | | | (cherry picked from commit e4b9b37ccf8495be674bc15cf0bf9d76fe94e6be)
* | TCP connect always opens correct socket typeFabio Alessandrelli2017-03-222-5/+9
|/ | | | | | TCP client connections does not need to rely on ipv6 dual stack sockets (cherry picked from commit 55b4f3686d8f51958132a1a1745cc4e128fd118d)
* Bring that Whole New World to the Old Continent tooRémi Verschelde2017-03-1961-8959/+7450
| | | | | Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261.
* Prevent MSVC build issue after clang-format includes reorderRémi Verschelde2017-03-181-2/+3
|
* Style: Various fixes to play nice with clang-formatRémi Verschelde2017-03-181-3/+6
| | | | (cherry picked from commit 2a0ddc1e89ec7b947152c8d0cb132d58f2c00a81)
* Style: Fix statements ending with ';;'Rémi Verschelde2017-03-185-6/+6
| | | | (cherry picked from commit f44ee891beaad397481dd88da41cb80e6539774f)
* Add a simple signal handler for SIGCHLD on UnixHein-Pieter van Braam2017-03-181-0/+15
| | | | | | This fixes #6631 (cherry picked from commit cff6840ff7da010112b94f9be13deaa8288e90cd)
* Finish fix for POSITION in 2D shadersPedro J. Estébanez2017-03-061-3/+2
|
* fix for https://github.com/godotengine/godot/issues/3226saltpowered2017-01-171-2/+4
|
* Improvements to scons defined WINVER/_WIN32_WINNTFabio Alessandrelli2017-01-122-9/+5
| | | | (cherry picked from commit 65483d57bf322f847ecb1ab906e8f4fac49f2557)
* Windows: Workaround missing includes in MinGW-w64 < 4Rémi Verschelde2017-01-121-1/+13
| | | | | | | | | | | The MinGW-w64 version we have on our Travis build environment (Ubuntu 12.04, mingw-w64 2.0.1, gcc 4.6) is old and has some missing includes in the dependencies of the `tcpmib.h` header [0] [1] [2]. Those were not triggered before 6323779596dea0db7f58afef7d3d3d5588ef20cb probably due to conflicting WINVER definitions which prevented triggering the code specific to >= 0x0600 (Vista). We ensure it won't be triggered by defining the _WIN32_WINNT macro to Windows XP compatibility. (cherry picked from commit b24fe6879a2d26b530c1198ba7abb8cf2719f06c)
* Windows: Define _WIN32_WINRT to 0x0600 (Vista)Rémi Verschelde2017-01-122-11/+3
| | | | | | | | | | Passed as a compiler define to be sure it is always define before windows.h is loaded. This means that Godot officially requires Vista API or later, it will not work on Windows XP or earlier. Also fix a bogus check for Windows 7 API. (cherry picked from commit 6323779596dea0db7f58afef7d3d3d5588ef20cb)
* Fix for the huge audio latency of the SamplePlayer (>200 ms)lonesurvivor2017-01-124-126/+140
| | | | | | | | | - fixes PulseAudio, ALSA and RtAudio driver - cleans up the driver files for better readability (mostly whitespace-related stuff) - makes ALSA and Pulseaudio actually use the global setting "audio/mix_rate" for the sample rate instead of a fixed value (RtAudio did this already) (cherry picked from commit da6b6c2dd790a1a6f1702efe1b075b09ec76fb48)