Skip to content

Increase grass rendering distance#4567

Open
Xenius97 wants to merge 16 commits intomultitheftauto:masterfrom
Xenius97:new/grass_distance
Open

Increase grass rendering distance#4567
Xenius97 wants to merge 16 commits intomultitheftauto:masterfrom
Xenius97:new/grass_distance

Conversation

@Xenius97
Copy link
Contributor

@Xenius97 Xenius97 commented Nov 22, 2025

This PR increases the grass rendering distance.
This is only one part of fully implementing the idea in #3842.
The problem is that even if we increase the view distance, it’s simply not enough. By default, the grass buffer is limited to 32, and to exceed this limit, the TriPlantBuffer would also need to be rewritten. I’m not that deep into it yet, but the view-distance increase works on its own, so if someone wants to take it further, they only need to handle increasing the grass buffer.

getGrassDrawDistance

closeDistance, farDistance = getGrassDrawDistance()

setGrassDrawDistance

bool = setGrassDrawDistance(closeDistance, farDistance)

resetGrassDrawDistance

bool = resetGrassDrawDistance()

Before:
mta-screen_2025-11-21_21-02-12

After:
mta-screen_2025-11-21_21-02-21

@FileEX FileEX added the enhancement New feature or request label Nov 22, 2025
@Xenius97 Xenius97 marked this pull request as draft November 22, 2025 15:25
@Xenius97 Xenius97 marked this pull request as ready for review November 22, 2025 16:54
@Xenius97 Xenius97 requested a review from FileEX November 22, 2025 16:54
FileEX
FileEX previously approved these changes Nov 23, 2025
@Xenius97 Xenius97 closed this by deleting the head repository Nov 23, 2025
@Xenius97 Xenius97 reopened this Nov 23, 2025
# Conflicts:
#	Client/mods/deathmatch/logic/luadefs/CLuaWorldDefs.cpp
#	Client/multiplayer_sa/CMultiplayerSA.h
#	Server/mods/deathmatch/logic/CMapManager.cpp
#	Server/mods/deathmatch/logic/luadefs/CLuaWorldDefs.cpp
#	Server/mods/deathmatch/logic/luadefs/CLuaWorldDefs.h
#	Shared/sdk/net/rpc_enums.h
This reverts commit b06426d.
This reverts commit 94224cb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants