DRW Posted November 17, 2017 Posted November 17, 2017 (edited) Hi there, I've been scripting on my new server for two weeks now and I plan to release it to the public today. I have created my own AI and I wanted it to make it as precise as possible, so the syncing and all the events happen every 0.5 seconds so the AI can check if they have an objective, if they have to shoot, check the direction where the objective is going so it can anticipate and shoot with more precision, look around, stop shooting, etc. It's working very well so far. But I'm kind of scared of timers, because I have many since I use account datas and element datas all the time and I need the clients to depend on the server. Let's say I have 15 timers that are 5-30 seconds long, 2 that are 0.5 seconds long, and 3 that are 2 seconds long. 5-30 seconds: They usually set an account data and an element data per logged player, probably two of these timers also trigger client events. 0.5 seconds: They trigger 1-2 client events per player. 2 seconds: These trigger a client event. Clients don't seem to lag, FPS are stable, RAM is ok, but I've only tested it for 4-5 players. Is it going to affect my performance in the long run? Will the traffic be highly affected? SERVER SPECS: 6MB RAM 1x2,5GHZ CPU 100mbps internet speed. Edited November 17, 2017 by MadnessReloaded Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
Simple0x47 Posted November 23, 2017 Posted November 23, 2017 With more than 30 players with 20 AI each you would see the effects. "Keep making it simplex."
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