mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
remove obsolete prop sorting
This commit is contained in:
parent
6d0c81ff30
commit
39cdc7e7b3
1 changed files with 0 additions and 7 deletions
|
|
@ -22,7 +22,6 @@ const pvsReverseMap = new Map([
|
|||
|
||||
function readPVSType(stream: BitStream): PVS {
|
||||
const pvs = stream.readBits(2);
|
||||
// console.log(pvs);
|
||||
return pvsMap.get(pvs) as number;
|
||||
}
|
||||
|
||||
|
|
@ -99,12 +98,6 @@ function writeEnterPVS(entity: PacketEntity, stream: BitStream, state: ParserSta
|
|||
|
||||
const propsToEncode = instanceBaseLine ? entity.diffFromBaseLine(instanceBaseLine) : entity.props;
|
||||
|
||||
// console.log(propsToEncode.map(prop => `${prop.definition.name}: ${prop.value}`));
|
||||
|
||||
const allProps = sendTable.flattenedProps;
|
||||
propsToEncode.sort((a, b) => allProps.findIndex((propDef) => propDef.fullName === a.definition.fullName) -
|
||||
allProps.findIndex((propDef) => propDef.fullName === b.definition.fullName));
|
||||
|
||||
encodeEntityUpdate(propsToEncode, sendTable, stream);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue