fivem icon indicating copy to clipboard operation
fivem copied to clipboard

tweak(server-impl): Increase asset warning sizes

Open ook3D opened this issue 2 months ago • 12 comments

Goal of this PR

Cleanup unnecessary warnings in server console

How is this PR achieving the goal

upping the sizes for each warning level

This PR applies to the following area(s)

FiveM, Server

Successfully tested on

Game builds: .. 3258 Platforms: Windows, Linux Windows

Checklist

  • [x] Code compiles and has been tested successfully.
  • [x] Code explains itself well and/or is documented.
  • [x] My commit message explains what the changes do and what they are for.
  • [x] No extra compilation warnings are added by these changes.

Fixes issues

image with the current values, red highlights vanilla untouched assets. image with proposed changed values

ook3D avatar Oct 31 '25 10:10 ook3D

https://github.com/citizenfx/fivem/pull/3693 relevant discussion here

ook3D avatar Oct 31 '25 10:10 ook3D

this will lead to even more problems. everyone is experiencing texture loss rn, low FPS, this will only help modders deliver bad assets. my view over this was that an asset that isn't optimized properly shouldn't even start.

i saw you are in hane mods, he delivers assets with warnings of 100 + mb. my entire server lost textures after my team added a mlo from him.

i get your idea tho, but for example a 30mb yft / ydd is too heavy. it wouldn't even gen warned about.

i agree tho with some ytds going a little bit over 16mb

that's only my opinion!

so what i'm saying the best warning is more filtered, ytd's should have a warning, yft's another warnings, ydd another warnings, ydr's another warnings.

d22tny avatar Oct 31 '25 14:10 d22tny

this will lead to even more problems. everyone is experiencing texture loss rn, low FPS, this will only help modders deliver bad assets. my view over this was that an asset that isn't optimized properly shouldn't even start.

i saw you are in hane mods, he delivers assets with warnings of 100 + mb. my entire server lost textures after my team added a mlo from him.

i get your idea tho, but for example a 30mb yft / ydd is too heavy. it wouldn't even gen warned about.

i agree tho with some ytds going a little bit over 16mb

that's only my opinion!

so what i'm saying the best warning is more filtered, ytd's should have a warning, yft's another warnings, ydd another warnings, ydr's another warnings.

You do realize there is vanilla assets that say these warnings currently right? Did you miss that part? How is it unoptimized if it's literally from rockstar themselves? You're missing the point of the PR.

ook3D avatar Oct 31 '25 16:10 ook3D

As i've said, 16+mb yft/ydr/ydd is too much. You're only showing ytd's. The warning size is general. Those warnings were based on nta's research on texture loss.

d22tny avatar Oct 31 '25 17:10 d22tny

As i've said, 16+mb yft/ydr/ydd is too much. You're only showing ytd's. The warning size is general. Those warnings were based on nta's research on texture loss.

please link this research, the current "texture loss" issues is not caused by this.

ook3D avatar Oct 31 '25 17:10 ook3D

The console was made to report warnings, errors, and debug information — it’s not meant to look pretty. It’s built to be functional, and trying to cover that up does more harm than good. It’s basically like drying ice — in the end, it literally changes nothing.

Luigi041 avatar Nov 03 '25 21:11 Luigi041

The console was made to report warnings, errors, and debug information — it’s not meant to look pretty. It’s built to be functional, and trying to cover that up does more harm than good. It’s basically like drying ice — in the end, it literally changes nothing.

yet again, you are not understanding the point of this PR. why would there be warnings for assets rockstar has made? are these assets poorly made?

ook3D avatar Nov 03 '25 21:11 ook3D

With these proposed changes would Rockstar assets not still get the warning? The values still seem a bit low. Maybe also make the increments consistent like the original implementation too.

Scullyy avatar Nov 03 '25 23:11 Scullyy

With these proposed changes would Rockstar assets not still get the warning? The values still seem a bit low. Maybe also make the increments consistent like the original implementation too.

The goal is to have less assets show as warnings, and mainly the warning saying it will lead to issues, it's okay that it prints the size still

ook3D avatar Nov 03 '25 23:11 ook3D

With these proposed changes would Rockstar assets not still get the warning? The values still seem a bit low. Maybe also make the increments consistent like the original implementation too.

The goal is to have less assets show as warnings, and mainly the warning saying it will lead to issues, it's okay that it prints the size still

It leads to issues.

d22tny avatar Nov 04 '25 04:11 d22tny

With these proposed changes would Rockstar assets not still get the warning? The values still seem a bit low. Maybe also make the increments consistent like the original implementation too.

The goal is to have less assets show as warnings, and mainly the warning saying it will lead to issues, it's okay that it prints the size still

It leads to issues.

So are you going to prove that? You still have not linked this research you've mentioned, and like I said, the current "texture loss" issues are not related to assets with high memory usage.

ook3D avatar Nov 04 '25 05:11 ook3D

You can literally restream an unmodified rockstar asset and get an warning, how is that going to lead to issues, it's a flaw in the system

ook3D avatar Nov 04 '25 05:11 ook3D