Microsoft DirectX 8.1 (Visual Basic)

Testing Network Performance with DP8Sim

The DP8Sim tool is a simulated Microsoft® DirectPlay® 8.1 service provider that allows you to test your DirectPlay application in a variety of network conditions, such as high latency and packet loss. DP8Sim is not a replacement for testing in the real deployment environment, but it can help you predict how your application will perform.

Note  DP8Sim is implemented on top of the existing DirectPlay8 TCP/IP Service Provider. The settings are also applied on top of the existing network characteristics. Therefore, it is intended to be used on a high-speed local area network (LAN) where normal latency and packet loss are negligible.

Path

Executable: (SDK Root)\bin\dp8simui.exe

DLL: (SDK Root)\bin\dp8sim.dll

User's Guide

The configuration utility, dp8simui.exe, is the user interface for controlling dp8sim.dll. Both files must reside in the same directory. When you start the configuration utility, it will automatically register the dp8sim.dll component object model (COM) objects. You can also manually register the dynamic link library (DLL) by typing the following command at your Microsoft MS-DOS® prompt.

regsvr32.exe dp8sim.dll

When you run the configuration utility, it will prompt you to enable the network simulator for the DirectPlay TCP/IP service provider. Any existing DirectPlay sessions will not use the network simulator if the DirectPlay interface was created prior to enabling the simulator.

Once the simulator is enabled, you can control various network options. There are also predefined network settings that may be useful.

The options for sending (receiving) are:

Note  These options apply for in-game data only. Host enumerations and responses are not subject to the simulation.

To make modifications, use the Apply and Revert buttons. Click Apply to change the settings and Revert to restore the previous settings.

At the bottom of the configuration utility window, the send and receive statistics for all affected DirectPlay interfaces are displayed. The Refresh button updates the statistics and Clear resets the statistics to 0.

When you close the configuration utility, you will be asked if you want to disable the network simulator. Disabling the simulator prevents subsequent DirectPlay sessions from being affected by DP8Sim, but existing sessions will continue to use the existing network settings. If you leave DP8Sim enabled, subsequent DirectPlay sessions will continue to use the existing network settings even when the configuration utility is not running.

To unregister dp8sim.dll, type the following at the MS-DOS command prompt.

regsvr32.exe /u dp8sim.dll

For more information about network performance, see Optimizing Network Usage.