altv-issues
                                
                                
                                
                                    altv-issues copied to clipboard
                            
                            
                            
                        Object issues
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
 
Seems like there is some hardcoded limit of 512.
the issue only happens with this object