summaryrefslogtreecommitdiffstats
path: root/editor/debugger/editor_visual_profiler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-5/+5
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-3/+2
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-1/+1
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Add static methods for creating Image and ImageTexturekobewi2022-07-081-1/+1
|
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-4/+4
|
* Increase the editor profiler frame history default and maximum limitHugo Locurcio2022-05-281-2/+2
| | | | | | | | | | | | The new default value (1800) allows storing 30 seconds of profiling at 60 FPS. The new maximum value (10000) allows storing about 3 minutes of profiling at 60 FPS. The profiler graph will scale accordingly to the chosen setting, so the default value is kept relatively low to prevent the graph from looking too squished on narrow displays.
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-14/+0
| | | | | | | | | | | 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.
* More icon updates on theme changeHaoyu Qiu2022-03-151-0/+1
|
* Merge pull request #45263 from KoBeWi/😕Rémi Verschelde2022-03-151-1/+1
|\
| * Change some math macros to constexprkobewi2022-03-091-1/+1
| | | | | | | | Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
* | Merge pull request #58735 from ↵Fabio Alessandrelli2022-03-101-1/+1
|\ \ | |/ |/| | | | | Calinou/editor-visual-profiler-tweak-frame-time-label Tweak editor visual profiler frame time label for consistency
| * Tweak editor visual profiler frame time label for consistencyHugo Locurcio2022-03-041-1/+1
| | | | | | | | This is consistent with the general profiler's frame time label.
* | Remove duplicate editor settings definitionskobewi2022-03-061-1/+1
| |
* | Fix font color in the editor visual profiler when using light themeHugo Locurcio2022-03-041-11/+13
| | | | | | | | Previously, white text would be drawn on a white background.
* | Use the editor background color for the visual profiler graphHugo Locurcio2022-03-041-13/+14
|/ | | | This was already done for the general profiler.
* Merge pull request #58182 from akien-mga/style-cleanup-if-semicolons-deadcodeRémi Verschelde2022-02-161-14/+0
|\
| * Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-14/+0
| | | | | | | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* | Port existing _notification code to use switch statements (part 1/3)jmb4622022-02-161-7/+11
|/
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-1/+1
| | | | | | | | 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.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-1/+1
|
* Rename TextureRect.expand to ignore_texture_sizekobewi2022-01-071-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-4/+4
|
* Use "enum class" for input enumsAaron Franke2021-11-121-2/+2
|
* Fix specific warnings issues by ClangK. S. Ernest (iFire) Lee2021-10-141-2/+2
| | | | Found by `scons dev=yes` on llvm-mingw.
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-10/+10
|
* Optimize StringName usagereduz2021-07-181-11/+11
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Clean up Treereduz2021-07-041-0/+3
| | | | | | | | | | | Fixes some problems introduced by #49917 * Tree used minimum size as a stretch ratio, so it forced a minimum size of 1. * Minimum size redone, stretch ratio moved to a separate setting * Fitting to contents was enforced, this is more intuitive, but in many situations this is undesired. * Added a clip content option for situations where fit to contents does not apply. * Icon would scroll with the item, making it invislbe if the item is too long. * Made icon always appear to the right (or left if RTL is enabled) of the visible item space.
* Clean up RenderingServer and its bindingsreduz2021-07-011-1/+1
| | | | | | * Rewrote bindings for RenderingServer. * They are now all up to date. * Several unused methods and deprecated features were cleaned up.
* Implement Tree's internal minimum width calculationGilles Roudière2021-06-281-3/+3
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-2/+2
|
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-2/+2
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Fix missed renamings from empty() to is_empty()Rémi Verschelde2020-12-291-1/+1
| | | | Those were missed in #44401 or added by later PRs.
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-8/+13
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-4/+0
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-12/+24
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-32/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Enforce use of bool literals instead of integersRémi Verschelde2020-05-141-1/+1
| | | | | Using clang-tidy's `modernize-use-bool-literals`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
* [Core] Rename linear_interpolate to lerpAaron Franke2020-04-291-1/+1
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-9/+9
|
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-2/+2
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* Update editor debugger to new remote debugger.Fabio Alessandrelli2020-03-081-0/+842
Shared RemoteDebuggerPeer code between client and server. Move editor profilers inside editor/debugger folder.