This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //////////////////////////////////////////////////////////// | |
| // Scenario 5: nested coroutines with per-layer state (16 doubles) | |
| // | |
| // Highlights one of SFEX's costs: every top-level resume re-walks the | |
| // entire C++ call chain from the outermost coroutine down to the leaf. | |
| // At depth 64 with non-trivial per-layer state, each level pays for a | |
| // real function call and an actual touch of its members on every | |
| // resume. | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| // LICENSE AND COPYRIGHT (C) INFORMATION | |
| // https://github.com/vittorioromeo/VRSFML/blob/master/license.md | |
| //////////////////////////////////////////////////////////// | |
| // Headers | |
| //////////////////////////////////////////////////////////// | |
| #include "SFML/System/Clock.hpp" | |
| #include "SFML/System/Time.hpp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <benchmark/benchmark.h> | |
| #include <cstdint> | |
| enum class EDS_ScreenHuggingIconCorner : uint8_t | |
| { | |
| TopLeft, | |
| TopRight, | |
| BottomLeft, | |
| BottomRight, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Compile on MSYS2 with: | |
| // gcc ./fboBug.c -lSDL3 -lopengl32 | |
| #include <SDL3/SDL.h> | |
| #include <SDL3/SDL_opengl.h> | |
| #include <assert.h> | |
| #include <stdio.h> | |
| #define glCheck(...) \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() | |
| { | |
| // | |
| // | |
| // Setup globals and hidden shared OpenGL context (for resource sharing) | |
| // (uses `SDL_GLContext` internally) | |
| auto graphicsContext = sf::GraphicsContext::create().value(); | |
| sf::priv::GlContext& sharedCtxPtr = sf::WindowContext::getSharedGlContextPtr(); | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Analyzing build trace from 'out.bin'... | |
| **** Time summary: | |
| Compilation (94 times): | |
| Parsing (frontend): 360.0 s | |
| Codegen & opts (backend): 81.0 s | |
| **** Files that took longest to parse (compiler frontend): | |
| 9161 ms: .//tests/CMakeFiles/test-conversions_cpp17.dir/src/unit-conversions.cpp.obj | |
| 9097 ms: .//tests/CMakeFiles/test-regression1_cpp17.dir/src/unit-regression1.cpp.obj | |
| 8787 ms: .//tests/CMakeFiles/test-conversions_cpp14.dir/src/unit-conversions.cpp.obj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // TODO P0: cleanup, add error handling, add missing events, etc... | |
| #include <SFML/Copyright.hpp> // LICENSE AND COPYRIGHT (C) INFORMATION | |
| //////////////////////////////////////////////////////////// | |
| // Headers | |
| //////////////////////////////////////////////////////////// | |
| #include "SFML/Window/Mouse.hpp" | |
| #include "SFML/Window/WindowImpl.hpp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using mode_t = unsigned int; | |
| using size_t = decltype(sizeof(int)); | |
| namespace detail | |
| { | |
| struct invalid_permission_character {}; | |
| struct invalid_permission_string_length {}; | |
| consteval mode_t from_readable_mode_string(const char * const s) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <boost/pfr.hpp> | |
| #include <vector> | |
| #include <tuple> | |
| #include <type_traits> | |
| #include <cassert> | |
| #include <array> | |
| namespace storage_policy | |
| { | |
| struct aos; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Analyzing build trace from 'analysis.bin'... | |
| **** Time summary: | |
| Compilation (3239 times): | |
| Parsing (frontend): 3573.4 s | |
| Codegen & opts (backend): 1785.5 s | |
| **** Files that took longest to parse (compiler frontend): | |
| 25335 ms: ./editor/editor_translation.windows.editor.x86_64.llvm.o | |
| 21648 ms: ./modules/text_server_adv/text_server_adv.windows.editor.x86_64.llvm.o | |
| 12415 ms: ./platform/windows/display_server_windows.windows.editor.x86_64.llvm.o |
NewerOlder