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

Multiple objects in other dimension cause game stuttering #813

Open
MrDadosz opened this issue Feb 14, 2019 · 0 comments
Open

Multiple objects in other dimension cause game stuttering #813

MrDadosz opened this issue Feb 14, 2019 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@MrDadosz
Copy link

MrDadosz commented Feb 14, 2019

Describe the bug
If you create a lot of objects in other dimension that you are in, game will have micro stuttering on streaming it in and out even if onClientElementStreamIn and onClientElementStreamOut aren't triggered.

To reproduce

  1. set your dimension to 0
  2. run for i = 1, 5000 do local obj=createObject(3918, 1292.28002, -1301.80, 35.655); setElementDimension(obj, math.random(500,1000)) end
  3. set your camera matrix to 929.28582763672 [number], -1816.6768798828 [number], 259.33786010742 [number], 984.72772216797 [number], -1741.0424804688 [number], 224.61546325684 [number], 0 [number], 70 [number]
  4. Go forward.
    There will be micro lag between positions:
    929.28582763672 [number], -1816.6768798828 [number], 259.33786010742 [number], 984.72772216797 [number], -1741.0424804688 [number], 224.61546325684 [number], 0 [number], 70 [number]
    956.34246826172 [number], -1779.7684326172 [number], 242.39280700684 [number], 1011.784362793 [number], -1704.1340332031 [number], 207.67041015625 [number], 0 [number], 70 [number]

Expected behaviour
If objects are in other dimension than player, there should be no micro lags.

Screenshots
Moving forwards and backwards when objects aren't created
image

Moving forwards and backwards when objects are created:
image

https://youtu.be/ENB16vYPWgY

Version
Multi Theft Auto v1.5.6-release-16068.8.011
Copyright (C) 2003 - 2018 Multi Theft Auto

@patrikjuvonen patrikjuvonen added the bug Something isn't working label Feb 15, 2019
@botder botder added this to the Backlog milestone Mar 3, 2019
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

3 participants