aboutsummaryrefslogtreecommitdiff
path: root/core/os/memory.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Add placement deletes to avoid warnings on VC++Matthias Hoelzl2017-11-191-0/+8
| | | | | | | | | | | | | | | | | | | When compiling with VC++ 2017, Godot generates huge numbers of C4291 warnings about missing placement delete. I have not found a way to disable these warnings using compiler options: AFAICT there is no equivalent to `-f-no-exceptions` for VC++ (there is only /EH to change the exception-handling model, /GX is deprecated) and adding /wd4291 to the `disable_nonessential_warnings` list in the `SConstruct` file or even compiling with `warnings=no` does not disable the messages. Placement delete is only called when placement new throws an exception, since Godot doesn't use exceptions this change should have no runtime effect. Fixes #12654 (probably, difficult to say without log)
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Use atomics for memory use trackingPedro J. Estébanez2017-08-011-6/+6
| | | | | | | | Plus: - An allocation is counted only after checking its success. - Max usage is updated after growing reallocs as well. - Drop unused header. - Changed the 0xFFF.. at get_mem_available() to -1 with a comment telling it's the same, but more universal.
* Revert "Improve reliability of memory stats"Rémi Verschelde2017-07-111-1/+2
|
* Improve reliability of memory statsPedro J. Estébanez2017-07-051-2/+1
| | | | | | | | The allocation count is managed atomically and where it actually should change (for instance, not counting an allocation before its success has been checked). Bonus: Improve readability of the pre-pad checks.
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-57/+45
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Style: Fix whole-line commented codeRémi Verschelde2017-01-141-2/+2
| | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky2017-01-071-103/+1
| | | | renamed to PoolVector
* -Changed memory functions, Memory::alloc_static*, simplified them, made them ↵Juan Linietsky2017-01-061-98/+37
| | | | | | aligned to 16 -Changed Vector<> template to fit this.
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Add spaces to macros in memory.h to make C++11 compilers happyGeequlim2016-05-271-5/+4
|
* remove trailing whitespaceHubert Jarosz2016-03-091-43/+43
|
* better array alignmentAriel Manzur2016-02-191-4/+4
|
* fixes array allocation bug and sets DEFAULT_ALIGNMENT to 1. probably needs ↵Ariel Manzur2016-02-191-4/+4
| | | | testing
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* some optimizations in godot memory handlingJuan Linietsky2015-06-121-5/+12
|
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+362