Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SimulateLatency/SimulatePacketLoss #546

Open
shouldice opened this issue Mar 17, 2024 · 2 comments
Open

Using SimulateLatency/SimulatePacketLoss #546

shouldice opened this issue Mar 17, 2024 · 2 comments

Comments

@shouldice
Copy link

This is a help/support question.

Hi there! I'm having a great time learning about networking with this library. Thank you!

I'm trying to use SimulateLatency and SimulatePacketLoss but I'm not noticing any change in behaviour when those are turned on. The docs say they only work in DEBUG mode, but I'm not sure what that means. Adding #define DEBUG to my own project doesn't seem to help. Is DEBUG mode a LiteNetLib compile-time flag? Do I need to compile the dll myself instead of using the nuget version?

Sorry if this is a basic C# question; I'm still learning. :)

Library version: 1.2.0 via nuget
Framework: MonoGame
OS: Windows

@shouldice shouldice changed the title Using SimulateLatancy/SimulatePacketLoss Using SimulateLatency/SimulatePacketLoss Mar 17, 2024
@JamDoggie
Copy link

JamDoggie commented Apr 4, 2024

Yeah it does seem like these features only work when compiling LiteNetLib itself as Debug. This seems unnecessary IMO and I personally think this functionality has no reason not to work in Release mode as well.

@RevenantX
Copy link
Owner

@JamDoggie it slowdowns library much, because there additional checks and lists that contains delayed packets. Use Clumsy to test release https://jagt.github.io/clumsy/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants