Code Monkey home page Code Monkey logo

Comments (2)

nxrighthere avatar nxrighthere commented on May 30, 2024 1

Greetings. Asynchronous simulation within a single process is not possible at the moment because of this. The wrapper itself also has some places for optimizations using the latest C# features such as Span<T>, but I'm waiting until the first stable release will become available to avoid rewriting the code.

I am a big fan of your benchmark tests,

Glad to hear, thanks.

from valvesockets-csharp.

nxrighthere avatar nxrighthere commented on May 30, 2024

I've added support for direct access to native memory blocks of network messages using Span<T> in order to avoid marshaling, but this requires C# 7.2 and unsafe blocks.

To enable this functionality follow these steps:

  1. Define VALVESOCKETS_SPAN symbol.
  2. Define your message callback and use the appropriate function to receive messages.

If you are using the current more complex approach, you will need to refactor your code a bit.

from valvesockets-csharp.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.