rasec15 Posted June 30, 2018 Share Posted June 30, 2018 I need a script for players who have weak PCs to disable textures Link to comment
Discord Moderators Pirulax Posted June 30, 2018 Discord Moderators Share Posted June 30, 2018 What kind of textures? Link to comment
Moderators IIYAMA Posted June 30, 2018 Moderators Share Posted June 30, 2018 https://wiki.multitheftauto.com/wiki/OnClientPreRender If timeslice is higher than 25 ms for a while, then remove the textures. 25ms = 40 fps. Btw write it yourself, those are the rules of the scripting section! Link to comment
Discord Moderators Pirulax Posted June 30, 2018 Discord Moderators Share Posted June 30, 2018 But @IIYAMA what textures is he talking about? I still dont understand. Link to comment
Moderators IIYAMA Posted June 30, 2018 Moderators Share Posted June 30, 2018 6 minutes ago, Pirulax said: But @IIYAMA what textures is he talking about? I still dont understand. There is a type of element in MTA called textures. Which can be created with this function: https://wiki.multitheftauto.com/wiki/DxCreateTexture Textures are images saved in to the memory. Which makes them very fast to draw images in-game. You can also draw images by path, which is a very slow process because they have to be read out by file every frame. Shaders can use textures to draw them dynamic on in-game elements (and even animate them.) Which is this guy probably doing at the moment using community resources. But shaders and textures might be fast but for old computers they can be lagy. Link to comment
Discord Moderators Pirulax Posted June 30, 2018 Discord Moderators Share Posted June 30, 2018 Yeah, I know that. I tough that he wants to disable a kind of texture(for ex.: >128*128) Link to comment
Moderators IIYAMA Posted June 30, 2018 Moderators Share Posted June 30, 2018 @Pirulax That is indeed related. The larger the texture, the more memory and processing time it cost. (DXT compression matters) So yes, to serve lower quality textures or none for players with lower fps is a solution. Link to comment
Discord Moderators Pirulax Posted July 1, 2018 Discord Moderators Share Posted July 1, 2018 It does, but which DXT compression is the best to use? Is it the 5 or 3 or 1? I would say its DXT1 or DXT5, but the problem with DXT1 is that is doesnt support alpha blending, but most of the time, I dont use it anyways. Link to comment
Moderators IIYAMA Posted July 1, 2018 Moderators Share Posted July 1, 2018 (edited) DXT5 is the highest quality and as you said it does support alpha blending. I would pick DXT1 for low quality textures like sand or grass(floor layer). Which shouldn't be too high quality because of the old Anti-Aliasing in GTA. Saving that ram is just so important for old gpu's while drawing a lot of textures. Saving half of the ram, by just compressing it until the minimum. dxt3?, I wouldn't pick it either. Edited July 1, 2018 by IIYAMA Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now