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

Update DisableOcclusionThisFrame.md description and provided example #1245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion GRAPHICS/DisableOcclusionThisFrame.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ aliases: ["0x3669F1B198DCAA4F"]
```c
// 0x3669F1B198DCAA4F 0x0DCC0B8B
void DISABLE_OCCLUSION_THIS_FRAME();
```

This disables all occluders that cause the 'flickering' rendering under the map and inside buildings with no interiors, note that this may impact performance on lower end systems.
```
Comment on lines +11 to +12
Copy link
Collaborator

@AvarianKnight AvarianKnight Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This disables all occluders that cause the 'flickering' rendering under the map and inside buildings with no interiors, note that this may impact performance on lower end systems.
```
```
This disables all occluders that cause the 'flickering' rendering under the map and inside buildings with no interiors, note that this may impact performance on lower end systems.

You put the description inside of the function code block


## Examples
```lua
-- Example thread that has to run every frame
Citizen.CreateThread(function()
while true do
DisableOcclusionThisFrame()
Citizen.Wait(0)
end
end)
```
Loading