Skip to content

Commit

Permalink
Plugin: fix C4266 warning and update PGO data.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIronWolfModding committed Nov 8, 2019
1 parent 0803ed7 commit 600bb1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Include/rFactor2SharedMemoryMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ class SharedMemoryPlugin : public InternalsPluginV07 // REMINDER: exported func
bool WantsGraphicsUpdates() override { return Utils::IsFlagOff(SharedMemoryPlugin::msUnsubscribedBuffersMask, SubscribedBuffer::Graphics); } // whether we want graphics updates
void UpdateGraphics(GraphicsInfoV02 const& info) override; // update plugin with graphics info

// Supress C4266.
void UpdateGraphics(GraphicsInfoV01 const&) override {} // update plugin with graphics info

private:
SharedMemoryPlugin(SharedMemoryPlugin const& rhs) = delete;
SharedMemoryPlugin& operator =(SharedMemoryPlugin const& rhs) = delete;
Expand Down
15 changes: 8 additions & 7 deletions pgo/notes
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
To collect/refresh PGO data:

1. Build Release_PGOGEN[_MT]. This would do two things:
- Create instrumented rFactor2SharedMemoryMapPlugin.dll and place it in game plugins folder.
- Overwrite pgo\rFactor2SharedMemoryMapPlugin_saved[_mt].pgd with the new .pgd. Do not check this one in yet, until step 5 is complete.
2. Place pgort120.dll next to instrumented rFactor2.exe
- Build instrumented rFactor2SharedMemoryMapPlugin.dll. Build will place it in the game plugins folder.
- Build will Overwrite pgo\rFactor2SharedMemoryMapPlugin_saved[_mt].pgd with the new .pgd. Do not check this one in yet, until step 5 is complete.
2. Place pgort120.dll next to rFactor2.exe
3. Run the game
4. Copy rFactor2SharedMemoryMapPlugin![N].pgc back to pgo folder
5. Build Realease_AVX2. This will:
- produce merged pgo\rFactor2SharedMemoryMapPlugin.pgd
4. Copy rFactor2SharedMemoryMapPlugin![N].pgc from the rF2 Bin64\Plugins folder back to the pgo folder
5. Build Realease_AVX2[_MT]. This will:
- Produce merged pgo\rFactor2SharedMemoryMapPlugin.pgd
- Overwrite pgo\rFactor2SharedMemoryMapPlugin_saved[_mt].pgd with the new merged .pgd.
6. Check in the newly merged .pgd
- Produce and place PGO optimized plugin.
6. Check in the newly merged .pgd
Binary file modified pgo/rFactor2SharedMemoryMapPlugin64_saved_mt.pgd
Binary file not shown.

0 comments on commit 600bb1c

Please sign in to comment.