AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved [Question] Precache limit (https://forums.alliedmods.net/showthread.php?t=317730)

wOOw 07-26-2019 12:14

[Question] Precache limit
 
Question 1:
Does precache limit increases by 2 or by 1 if you precache same model on 2 different plugins?

Question 2:
Can precached test.mdl on plugin1.amxx be used in plugin2.amxx without preaching on plugin2.amxx

<VeCo> 07-26-2019 12:24

Re: [Question] Precache limit
 
The precache is done by the engine, not AMXX. If something is already precached, it won't be precached again. That's the point of precaching after all.

Krtola 07-28-2019 09:32

Re: [Question] Precache limit
 
1. 2
2. No

HamletEagle 07-28-2019 09:51

Re: [Question] Precache limit
 
Quote:

Originally Posted by Krtola (Post 2660957)
1. 2
2. No

1. 1
2. Yes

fysiks 07-28-2019 17:06

Re: [Question] Precache limit
 
Quote:

Originally Posted by HamletEagle (Post 2660959)
1. 1
2. Yes

As a clarification on this, while it does work, you should always precache the models you need in all plugins that use them. I.e. if two plugins use the same model they should both precache them in their code so that they can work alone or together.

wOOw 07-31-2019 14:00

Re: [Question] Precache limit
 
Thanks for the info.


All times are GMT -4. The time now is 17:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.