Original Post
hi, I have added some DirectPlay networking code to my program. Basically the exact same code used in the simple peer program supplied with the DX8 SDK.
The program worked great before the network code was added, but once the directplay code was added, the program has started performing very slowly.
The frame rate is about the same as it was before, but all the input to the program is slow. It takes a quarter second from the actual mouse moving to the mouse moving on screen, (same with keyboard input; output to screen (chat) is a quarter second after the button press). The direct input code is my own, and the mouse draws and erases itself each frame. However, the input was working perfectly fine before I added the DP code. So I am fairly sure it is the dp code slowing the program down.
I am fairly new to DP coding, although I have worked with DX quite a lot over the last year or so, and generally have no problem with it. But I have no idea why the program is so slow now. Can anyone help with some suggestions as to what may be causing the problem? I know you can''t see the code, so I am really looking for typical problems that I can then check for in my code.
I really appreciate any help, so thanks in advance for any replies.