Performance: Minor optimizations (forced inlining)
This commit is contained in:
parent
54b677c186
commit
6fb0551693
2 changed files with 6 additions and 9 deletions
|
@ -38,7 +38,7 @@ class APU : public Snapshotable, public IMemoryHandler
|
|||
NesModel _nesModel;
|
||||
|
||||
private:
|
||||
bool NeedToRun(uint32_t currentCycle);
|
||||
__forceinline bool NeedToRun(uint32_t currentCycle);
|
||||
void Run();
|
||||
void EndFrame();
|
||||
|
||||
|
|
13
Core/PPU.h
13
Core/PPU.h
|
@ -168,19 +168,16 @@ class PPU : public IMemoryHandler, public Snapshotable
|
|||
uint16_t GetNameTableAddr();
|
||||
uint16_t GetAttributeAddr();
|
||||
|
||||
void ProcessPreVBlankScanline();
|
||||
__forceinline void ProcessPreVBlankScanline();
|
||||
void ProcessPrerenderScanline();
|
||||
void ProcessVisibleScanline();
|
||||
__forceinline void ProcessVisibleScanline();
|
||||
|
||||
void CopyOAMData();
|
||||
__forceinline void CopyOAMData();
|
||||
|
||||
void BeginVBlank();
|
||||
void TriggerNmi();
|
||||
void EndVBlank();
|
||||
|
||||
uint32_t GetBGPaletteEntry(uint32_t paletteOffset, uint32_t pixel);
|
||||
uint32_t GetSpritePaletteEntry(uint32_t paletteOffset, uint32_t pixel);
|
||||
|
||||
void WritePaletteRAM(uint16_t addr, uint8_t value);
|
||||
|
||||
void LoadTileInfo();
|
||||
|
@ -191,8 +188,8 @@ class PPU : public IMemoryHandler, public Snapshotable
|
|||
void InitializeShiftRegisters();
|
||||
void LoadNextTile();
|
||||
|
||||
uint32_t GetPixelColor(uint32_t &paletteOffset);
|
||||
virtual void DrawPixel();
|
||||
__forceinline uint32_t GetPixelColor(uint32_t &paletteOffset);
|
||||
__forceinline virtual void DrawPixel();
|
||||
virtual void SendFrame();
|
||||
|
||||
PPURegisters GetRegisterID(uint16_t addr)
|
||||
|
|
Loading…
Add table
Reference in a new issue