BigFile/Sasquatch #1

Merged
rboullard merged 100 commits from BigFile into Development 2026-09-01 16:32:02 +00:00
3 changed files with 14 additions and 9 deletions
Showing only changes of commit f59c25969a - Show all commits
+10 -1
View File
@@ -151,4 +151,13 @@ IncludeCategories:
Priority: 13
- Regex: '^<[a-zA-Z0-9_/]+>'
Priority: 14
MainIncludeChar: AngleBracket
MainIncludeChar: AngleBracket
Macros:
- 'BIGFOOT_OPTIMIZED_ONLY(x)=x'
- 'BIGFOOT_OPTIMIZED_ONLY(x,y)=x,y'
- 'BIGFOOT_NOT_OPTIMIZED_ONLY(x)=x'
- 'BIGFOOT_NOT_OPTIMIZED_ONLY(x,y)=x,y'
- 'BIGFOOT_TOOLMODE_ONLY(x)=x'
- 'BIGFOOT_TOOLMODE_ONLY(x,y)=x,y'
- 'BIGFOOT_GAME_ONLY(x)=x'
- 'BIGFOOT_GAME_ONLY(x,y)=x,y'
@@ -11,7 +11,10 @@
#include <System/File/File.hpp>
#define BIGFOOT_GAME
#include <SasquatchBakerBenchmarks/BigFileInfo_generated.hpp>
#include <SasquatchBakerBenchmarks/SasquatchInfo_generated.hpp>
#undef BIGFOOT_GAME
#include <AssetsForBenchmarking/Asset/BenchmarkAsset.hpp>
@@ -21,13 +24,6 @@
#include <cstddef>
#include <cstdint>
// SasquatchInfo_generated.hpp only exposes SASQUATCH_..._LOCATION in BIGFOOT_GAME builds, but this
// benchmark needs it to bake into a Sasquatch file from toolmode. Fake the macro locally rather than
// widening the shared template.
#define BIGFOOT_GAME
#include <SasquatchBakerBenchmarks/SasquatchInfo_generated.hpp>
#undef BIGFOOT_GAME
namespace Bigfoot
{
class SasquatchBakerFixture: public benchmark::Fixture
@@ -17,7 +17,7 @@ namespace Bigfoot
SasquatchWriter::SasquatchWriter(const File& p_file,
const std::uint64_t p_assetCount,
const std::size_t p_totalFlatbufferBytes):
BIGFOOT_NOT_OPTIMIZED_ONLY(m_assetCount(p_assetCount),)
BIGFOOT_NOT_OPTIMIZED_ONLY(m_assetCount(p_assetCount), )
m_nextOffset(sizeof(SasquatchHeader) + p_assetCount * sizeof(SasquatchEntry)),
m_prefetchedUpTo(0),
m_file(p_file, m_nextOffset + p_totalFlatbufferBytes)