Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 15,207 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Actions VS Function #278545
07/14/09 12:25
07/14/09 12:25
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP

Serious User
VeT  Offline OP

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
What is faster:
1) have a lot of bots with actions
Code:
action Bot()
{
 while(1)
 {
  ControlHpPanelPos();
  wait(1);
 }
}


2) to have one function, that would runs through all bots and control position of their Hp panels?
Code:
void ControlBotsHpPanels()
{
 ENTITY* FirstTeam[20];
 ENTITY* SecondTeam[20];

 while(1)
 {
  if (NowTeam == 1)
  {
   RunThroughFirstTeamPlayersAndControlTheirHpPanels();
  }
  else
  {
   RunThroughSecondTeamPlayersAndControlTheirHpPanels();
  }
  wait(1);
 }
}




1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Actions VS Function [Re: VeT] #278550
07/14/09 12:40
07/14/09 12:40
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
They're the same speed. Tested with 3 PCs.

1) My PC:
Intel Core2 Duo 2.53 GHz.
NVIDIA GeForce 8600 GT.
2 GB RAM.
Windows Vista Ultimate SP2.

2) :
Intel Core2 Duo 2.40 GHz.
NVIDIA GeForce 7200 GS.
2 GB RAM
Windows Vista Home Premium.

3) :
Intel Centrino 1.50 GHz.
Intel Chipset "I don't remember what".
1.5 GB RAM.
Windows Vista Home Premium SP1.

Re: Actions VS Function [Re: Cowabanga] #278551
07/14/09 12:42
07/14/09 12:42
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP

Serious User
VeT  Offline OP

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Thats good... well, no: its bad, because i wanted to increase FPS with this smile

Anyway, thank you


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1