Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
7.10 Server Performance #221199
08/12/08 18:51
08/12/08 18:51
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Hello, I'm using the latest A7 (7.10) version (Professional) and started a server. I was wondering why it needs so much performance?!
I have an almost empty source-code tested and have seen that the acknex.exe need about 25% cpu-performance at a 2,4 GHZ Quad CPU.
Also, one a 1 GHZ CPU it needs about 70%. At older Engine version it was about 2-5%.
Is this a bug? I'm using a wdl file and the -sv parameter.

Script contents:
Code:
function main()
{
return;
}


Regards
TSGames

Re: 7.10 Server Performance [Re: TSG_Torsten] #221261
08/13/08 06:27
08/13/08 06:27
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That depends on the frame rate. Without setting fps_max and without a level you have an extremely high frame rate.

Re: 7.10 Server Performance [Re: jcl] #221328
08/13/08 14:19
08/13/08 14:19
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Thanks for reply. I've now tryed to set the frame rate to 20 fps. Now the server needs less performance, but I think it's still to much. (5% in A7 on an Quad Core, and 0% in A6, exactly the same script!)
I think this is to much performance for an empty script. On a server you can't spend so much cpu performance in one server-process when you want to make several sessions.

Why does A7 needs so much more performance?

Regards
TSGames

Re: 7.10 Server Performance [Re: TSG_Torsten] #221336
08/13/08 14:49
08/13/08 14:49
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A7 does not need "performance" at all here. An empty script can not have any performance.

When you want to measure the performance of an engine, you must use some sort of test application. When the engine does not do anything, you obviously can not measure anything. The 5% you've got are probably a random value caused by the smoother frame rate adjustment of A7 due to 'burning' of CPU cycles. This is the only thing that happens at all in your test. If you're interested, you can find details about that burning under "fps_max" in your manual.


Re: 7.10 Server Performance [Re: jcl] #221356
08/13/08 17:17
08/13/08 17:17
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
I've now tryed it with a real server code and have connected 2 clients for testing. In A7, the code needs 60-70% of the cpu on a 1 GHZ VIA CPU. Then I've compiled it in the latest A6 version. The code needs about 0-1 % of the cpu.
If this problem would also be in future a7 versions, I can't use A7 to develop server applications when they need such an huge amount of cpu power.
That means, when I start about 2 or 3 servers the system would run at 100% cpu usage.

Is there absolutly nothing I can set to restrict the a7 engine using so much system ressources?

Regards
TSGames

Re: 7.10 Server Performance [Re: TSG_Torsten] #221373
08/13/08 18:04
08/13/08 18:04
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Im not sure but arent you confusing the performance with the task time? What you see in the task scheduler is the time windows gave to your task. When you want to compare performance the best way is disabling fps_max and then compare the fps I think. In my levels A7 almost always had better fps than A6, sometimes even twice the fps.

Re: 7.10 Server Performance [Re: Tobias] #221395
08/13/08 19:39
08/13/08 19:39
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Originally Posted By: Tobias
Im not sure but arent you confusing the performance with the task time? What you see in the task scheduler is the time windows gave to your task. When you want to compare performance the best way is disabling fps_max and then compare the fps I think. In my levels A7 almost always had better fps than A6, sometimes even twice the fps.

Well, you're right in this way. But I mean a dedicated server which aren't rendering anything and just need to send data to the clients and handle entity positions (which normally should not need much performance).
Here is a screenshot, I've tried to show both processes at the same time:


At the moment there are no players connected to both servers. But as you can see at the cpu-time, the A7 server needs 10 times more of the cpu (both applications was started at the same time).
Well, 20% are not much (before it was much more, now I've done a lot of improvements in the code), but I don't understand it, because if you start several applications, this would be a lot of usage.

Regards
TSGames


Moderated by  old_bill, Tobias 

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