Merge branch 'composer-tracking-performance-log' of https://github.com/oobjectt/nitro-renderer into oobjectt-composer-tracking-performance-log

This commit is contained in:
dank074 2023-01-04 00:23:32 -06:00
commit 8531512307
6 changed files with 52 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -458,4 +458,6 @@ export class OutgoingHeader
public static RENTABLE_SPACE_CANCEL_RENT = 1667; public static RENTABLE_SPACE_CANCEL_RENT = 1667;
public static RENTABLE_SPACE_RENT = 2946; public static RENTABLE_SPACE_RENT = 2946;
public static RENTABLE_SPACE_STATUS = 872; public static RENTABLE_SPACE_STATUS = 872;
public static TRACKING_PERFORMANCE_LOG = 3230;
public static TRACKING_LAG_WARNING_REPORT = 3847;
} }

View File

@ -62,6 +62,7 @@ export * from './roomevents';
export * from './roomsettings'; export * from './roomsettings';
export * from './sound'; export * from './sound';
export * from './talent'; export * from './talent';
export * from './tracking';
export * from './user'; export * from './user';
export * from './user/data'; export * from './user/data';
export * from './user/inventory'; export * from './user/inventory';

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../api';
export class LagWarningReportMessageComposer implements IMessageComposer<ConstructorParameters<typeof LagWarningReportMessageComposer>>
{
private _data: ConstructorParameters<typeof LagWarningReportMessageComposer>;
constructor(warningCount: number)
{
this._data = [warningCount];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../api';
export class PerformanceLogMessageComposer implements IMessageComposer<ConstructorParameters<typeof PerformanceLogMessageComposer>>
{
private _data: ConstructorParameters<typeof PerformanceLogMessageComposer>;
constructor(k: number, userAgent: string, flashVersion: string, operatingSystem: string, cpuArchitecture: string, isDebugger: boolean, totalMemory: number, _arg_8: number, gcCount: number, averageUpdateInterval: number, slowUpdateCount: number)
{
this._data = [k, userAgent, flashVersion, operatingSystem, cpuArchitecture, isDebugger, totalMemory, _arg_8, gcCount, averageUpdateInterval, slowUpdateCount];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,2 @@
export * from './LagWarningReportMessageComposer';
export * from './PerformanceLogMessageComposer';