GithubHelp home page GithubHelp logo

ikcp_send 后 output 不调用 about kcp HOT 10 OPEN

skywind3000 avatar skywind3000 commented on May 22, 2024
ikcp_send 后 output 不调用

from kcp.

Comments (10)

skywind3000 avatar skywind3000 commented on May 22, 2024

你要持续循环调用update

from kcp.

qiangxinyu avatar qiangxinyu commented on May 22, 2024

我把 update 0.01秒调用一次,还是不行。

[NSTimer scheduledTimerWithTimeInterval:0.01 repeats:YES block:^(NSTimer * _Nonnull timer) {
        ikcp_update(kcp, [NSDate date].timeIntervalSince1970);
    }];

from kcp.

skywind3000 avatar skywind3000 commented on May 22, 2024

你看看我的test是怎么写的吧。

from kcp.

skywind3000 avatar skywind3000 commented on May 22, 2024

那么多项目都用的好好的。

from kcp.

cd756819220 avatar cd756819220 commented on May 22, 2024

绝对用的姿势有问题!!!

from kcp.

peererror avatar peererror commented on May 22, 2024

I am also getting same error after calling ikcp_send no output callback is called did anyone solve this problem

from kcp.

skywind3000 avatar skywind3000 commented on May 22, 2024

我就问问,你们 test.cpp 跑得起来么?

from kcp.

peererror avatar peererror commented on May 22, 2024

@skywind3000 its works for 5 to 10 mins after that its stop calling the callback

from kcp.

peererror avatar peererror commented on May 22, 2024

also I am on TDM mingw64 environment.

from kcp.

peererror avatar peererror commented on May 22, 2024

problem is resolved the issue was with timer using the precise timer I was able resolve the problem thanks for the help .
Also are there any good parameters to decrease delay from 20ms to around 5 to 10 ms ?
Thanks for the hard work

from kcp.

Related Issues (20)

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.