Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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