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

accessing m_godObject before pantophysics is instantiated. #302

Open
JotaroS opened this issue Jun 5, 2020 · 1 comment
Open

accessing m_godObject before pantophysics is instantiated. #302

JotaroS opened this issue Jun 5, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JotaroS
Copy link
Collaborator

JotaroS commented Jun 5, 2020

ioLoop is pararelly starts up with physicsMainLoop, which accessing pantoPhysics.m_godObject earlier than it's instantiated.

void ioLoop()
{
    PERFMON_START("[a] Receive serial");
    DPSerial::receive();
    auto connected = DPSerial::ensureConnection();
    PERFMON_STOP("[a] Receive serial");

    PERFMON_START("[b] Send positions");
    //DPSerial::sendDebugData();
    //DPSerial::sendInstantDebugLog("\n");
    if (connected && sendLimiter.step())
    {
        DPSerial::sendPosition();

currently fixed by adding delay after ioLoop::setup();

@JotaroS JotaroS added the bug Something isn't working label Jun 5, 2020
@JotaroS
Copy link
Collaborator Author

JotaroS commented Jun 7, 2020

This has been hard-coded. still need to call physicsMain setup earlier than ioLoop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant