Un-ignored: the dev drive is the ground truth the restoration and emulator work constantly reference (DPL3/LIBDPL + VRENDER i860 renderer source, BT/RP live+dev game trees, VGL_LABS pod boot, scene/audio content). Kept in-repo for the pod-owner community. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
49 lines
809 B
C++
49 lines
809 B
C++
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <basictyp.h>
|
|
#include <linkio.h>
|
|
#include "vr_prot.h"
|
|
|
|
char stack[1024];
|
|
|
|
void test ( int size )
|
|
{
|
|
clock_t then, now;
|
|
int32 i, bytes=0;
|
|
|
|
then=clock();
|
|
|
|
for (i=0; i<5*1024; i++ ) {
|
|
velocirender_transmit ( vr_dcs_nest_action, stack, size-4, 1 );
|
|
bytes+=size;
|
|
}
|
|
|
|
now=clock();
|
|
|
|
printf ("Done, sent %d bytes in %d ticks rate %f packetsize %d\n",
|
|
bytes, now-then, 100.0f * (float) bytes / (float) (now-then), size );
|
|
|
|
}
|
|
|
|
int main(int argc, char ** argv)
|
|
{
|
|
int i;
|
|
|
|
extern void vr_server ( char *, int32 );
|
|
|
|
vr_server ( argv[1], 0 );
|
|
|
|
for (i=0; i<256;i++)
|
|
stack[i]=0x0;
|
|
|
|
test(1024);
|
|
test(512);
|
|
test(256);
|
|
test(128);
|
|
test(64);
|
|
test(32);
|
|
|
|
return 0;
|
|
}
|