summaryrefslogtreecommitdiff
path: root/editor/debugger
AgeCommit message (Collapse)Author
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Add a new HashMap implementationreduz
Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
2022-05-05Rename profiler "Idle Time" to "Process Time"Hugo Locurcio
References to "idle time" are progressively being replaced by "process time" throughout the engine to avoid confusion.
2022-05-03Merge pull request #60627 from aaronfranke/rename-elementsRémi Verschelde
Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-05-02Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde
Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
2022-04-29Rename Basis "elements" to "rows"Aaron Franke
2022-04-29Rename Transform2D "elements" to "columns"Aaron Franke
2022-04-25Merge pull request #60490 from aaronfranke/dap-typoRémi Verschelde
2022-04-24Add an external link editor iconHugo Locurcio
This replaces the existing "chainlink" instance icon that was used for external links. That icon is still used for scene instancing. The icon was designed by redlamp. Co-authored-by: Taylor Wright <taylor@redlamp.org>
2022-04-24Fix type name typo in Debug Adapter ProtocolAaron Franke
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-04Zero initialize all pointer class and struct membersRémi Verschelde
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
2022-03-30Merge pull request #58395 from Geometror/editor-node-data-cleanupRémi Verschelde
2022-03-30Cleanup EditorNode and EditorDataHendrik Brucker
Co-authored-by: Eric M <itsjusteza@gmail.com>
2022-03-29Capitalize names in the debuggerFireForge
2022-03-28Add property name style toggle to InspectorHaoyu Qiu
2022-03-18Merge pull request #58233 from bruvzg/gde_tsRémi Verschelde
2022-03-17Make `TabBar/Container` default their alignments to the left instead of centerMichael Alexsander
2022-03-17Unify TextServer built-in module and GDExtension code.bruvzg
2022-03-15More icon updates on theme changeHaoyu Qiu
2022-03-15Merge pull request #45263 from KoBeWi/😕Rémi Verschelde
2022-03-10Merge pull request #58735 from ↵Fabio Alessandrelli
Calinou/editor-visual-profiler-tweak-frame-time-label Tweak editor visual profiler frame time label for consistency
2022-03-09Remove VARIANT_ARG* macrosreduz
* Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
2022-03-09Change some math macros to constexprkobewi
Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
2022-03-06Remove duplicate editor settings definitionskobewi
2022-03-04Merge pull request #58687 from YeldhamDev/the_beast_has_been_slainRémi Verschelde
2022-03-04Merge pull request #58741 from ↵Rémi Verschelde
Calinou/editor-visual-profiler-fix-light-font-color Fix font color in the editor visual profiler when using light theme
2022-03-04Merge pull request #58670 from KoBeWi/internal_debuggerRémi Verschelde
2022-03-04Fix font color in the editor visual profiler when using light themeHugo Locurcio
Previously, white text would be drawn on a white background.
2022-03-04Tweak editor visual profiler frame time label for consistencyHugo Locurcio
This is consistent with the general profiler's frame time label.
2022-03-04Use the editor background color for the visual profiler graphHugo Locurcio
This was already done for the general profiler.
2022-03-03Make `TabContainer` use `TabBar` internallyMichael Alexsander
2022-03-02Fix debugger not opening built-in scriptskobewi
2022-02-16Merge pull request #58182 from akien-mga/style-cleanup-if-semicolons-deadcodeRémi Verschelde
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-16Port existing _notification code to use switch statements (part 1/3)jmb462
2022-02-15Editor: Cleanup some includes dependenciesRémi Verschelde
Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
2022-02-14Remove most EditorNode constructor parameters and fieldstrollodel
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-09Merge pull request #57715 from Faless/debugger/4.x_core_includes_and_serversRémi Verschelde
[Debugger] Move most profilers to ServersDebugger, fix core includes.
2022-02-09Core: Move generated `VERSION_HASH` to a `.cpp` fileRémi Verschelde
This lets us have its definition in `core/version.h` and avoid rebuilding a handful of files every time the commit hash changes.
2022-02-08Merge pull request #57796 from akien-mga/revert-sname-theme-settersRémi Verschelde
2022-02-08Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde
This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
2022-02-08Refactor some object type checking code with `cast_to`Rémi Verschelde
Less stringly typed logic, and less String allocations and comparisons.
2022-02-06Add missing SNAME macro optimization to all theme methods calljmb462
2022-02-06[Debugger] Move servers-related behaviours to ServersDebugger.Fabio Alessandrelli
Forcing draw during debug break is now handled by ServersDebugger, and only happens when the proper message is sent from the EditorDebugger ("servers:draw"). In a similar way, briging the window in foreground is now also handled by ServersDebugger upon receiving "servers:foreground" which is sent by the EditorDebugger when resuming from a break ("continue").
2022-02-06[Debugger] Move most profilers to ServersDebugger.Fabio Alessandrelli
Also splits bandwidth/rpc profiler (RPCProfiler is now in SceneDebugger).
2022-02-06Add missing SNAME macro optimization in some function callsjmb462
2022-02-04String: Add contains().Anilforextra