ff14wed / deucalion

Injected Windows library for capturing decoded FFXIV packets
GNU General Public License v3.0
61 stars 5 forks source link

FIX: Do not emit duplicate packets for RECV #4

Closed ff14wed closed 1 year ago

ff14wed commented 1 year ago

The parent function several hops up the call chain is called for every segment it pops off the network buffer. However DecompressPacket function is called as part of this, so each frame could be "decompressed" hundreds of times (although once it's already decompressed it's a no-op).

In this fix we look at the iteration offset so that we only process each frame once.