summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Assets/CustomAsset.cpp
AgeCommit message (Collapse)Author
2026-04-17Improve usage of std::move and const references parametersMartino Fontana
Accomplished using `run-clang-tidy` with `performance-move-const-arg,performance-unnecessary-value-param,modernize-pass-by-value`. Changed arguments to const references, removed them where inappropriate (e.g. sink parameters). Same with std::move. Manually reviewed each change to make sure that it makes sense, and do something more appropriate if possible.
2025-06-06VideoCommon: remove 'GetByteSizeInMemory()' from custom asset, it is not ↵iwubcode
needed anymore
2025-06-06VideoCommon: avoid race conditions with asset load/unload by moving the lock ↵iwubcode
to the entire function, favor atomics for the memory/time getters
2025-06-06VideoCommon: rename m_bytes_loaded in asset library to bytes_loadediwubcode
2025-06-06VideoCommon: update CustomAsset's load time to be before the load occurs ↵iwubcode
(this prevents issues where the load time might be incorrectly inflated by long load operations) Co-authored-by: Jordan Woyak <jordan.woyak@gmail.com>
2025-06-06VideoCommon: remove 'GetLastAssetWriteTime' and switch to a steady_clock for ↵iwubcode
asset times
2025-06-06VideoCommon: change asset loading to return the number of bytes loaded ↵iwubcode
instead of a pass/fail
2025-06-06VideoCommon: add 'Unload' functionality to CustomAssetiwubcode
2025-06-06VideoCommon: add a handle to custom asset, this is an id that is only ↵iwubcode
relevant for a particular game session but is slightly faster as a numeric value for lookups than the traditional asset id
2023-06-05VideoCommon: add additional locks around asset access and usage to ensure ↵iwubcode
thread safety
2023-06-01VideoCommon: add custom asset implementation and asset library that can load ↵iwubcode
an asset