EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
X3AP: Task management for lasertowers
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
Quinch





Joined: 10 Jun 2004
Posts: 347 on topic

Thank you for registering your game
PostPosted: Sun, 25. Aug 13, 00:54    Post subject: X3AP: Task management for lasertowers Reply with quote Print

So I'm working on a script that will add a bit of fine-tuning to lasertower behavior - and I'm unsure how to go about doing that without creating a massive resource hog. Or, to be precise -

It will run on hundreds, if not thousands of objects {lasertowers, specifically}
Each object will spend most of its time idling
But also, each tower needs to react quickly when an enemy comes into range

Right now, the only way I can think of would be to have each tower constantly check if there's an enemy in range, and act if it's true. However, that creates a sliding scale of CPU vs. reaction - shorter intervals mean more lag, longer intervals mean longer average reaction time.

So my question is, are there alternatives? How does the "Default attack" script they run on normally function when it comes to detection?


_________________
I wasn't banished to the moon yesterday.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 16. Jul 18, 12:41

All times are GMT + 2 Hours

[ Disclaimer / Impressum ] | [ Privacy Policy / Datenschutz ]

Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.05870 seconds, sql queries = 15