altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Object issues

Open xxshady opened this issue 2 years ago • 2 comments

Description of the problem

At 400 objects visual artifacts At >500 objects crash: 0197bf4d-711b-40a9-9ed2-de74a1de5877

https://cdn.discordapp.com/attachments/1114579125059977217/1124802189295104101/Grand_Theft_Auto_V_2023.07.01-23.41.mp4

Reproduction steps

import * as alt from 'alt-client'

let i = 0
alt.setInterval(() => {
    ++i
    alt.log('creating:', i)

    const obj = new alt.LocalObject(
        'stt_prop_stunt_soccer_ball', 
        new alt.Vector3(Math.random() * 5 + 5, Math.random() * 5 + 5, 72), 
        alt.Vector3.zero, 
        true, 
        false, 
    )
    obj.positionFrozen = true
}, 100)

alt.everyTick(() => {
    alt.Utils.drawText2dThisFrame(`created: ${i}`)
})

Expected behaviour

It should be possible to create as many objects as it possible in the release branch (~1900)

Additional context

No response

Operating system

Windows 11

Version

15.0-dev291

Reproduction tested

  • [X] I confirm that I have made sure that this issue is also present on the newest dev version

xxshady avatar Jul 01 '23 20:07 xxshady

Seems like there is some hardcoded limit of 512.

martonp96 avatar Sep 01 '23 15:09 martonp96

the issue only happens with this object

martonp96 avatar Nov 17 '23 20:11 martonp96