Skip to content

Read the first map packet to confirm that login is complete instead of sleeping for 100ms #11

@divinity76

Description

@divinity76

sometimes you want the login to be really fast if logging in with multiple characters at the same time, hence the

            // if we don't sleep a little after logging in, nothing will work, talking, walking, etc won't respond for the first
            // few milliseconds or so. (???)
            usleep(100 * 1000);

part in Tibia_client_internal::login() should probably be optional (but on by default, because in MOST situations, it's a good thing) for example, that usleep makes the class unsuitable for making magebombs

  • that said, an even better solution than the usleep would be to read the first map packet to confirm that login is complete. then the login speed wouldn't be "100 milliseconds", it would be the speed of the server and your bandwidth (as it probably should be)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions