Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by k_ivan. 06/10/26 14:39
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (alx, TipmyPip, AndrewAMD, Quad, 1 invisible), 3,180 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Speed of Lite-C? #340172
09/01/10 16:54
09/01/10 16:54
Joined: Jul 2010
Posts: 13
Z
Zergling103 Offline OP
Newbie
Zergling103  Offline OP
Newbie
Z

Joined: Jul 2010
Posts: 13
Hey,

I needed to know about how fast Lite-C is by comparison to other languages.

I've heard that Lite-C statements are evaluated on the fly as strings, but now I've heard that it's all precompiled into binary statements similar to C or C++.

The problem is I need to program using a language that is as fast as possible. A language like Java or Actionscript, which is not compiled, is slow, because 99% of your processing headroom is used compiling each code statement from a text string to binary before it is executed. This may be ideal for simple scripts, but, it would not be for something computationally intensive like a genetic algorithm or a physics engine. (My game is using a genetic algorithm.)

Is lite-C just as fast as C or C++ during game runtime? If not, I'd need to go with C or C++.

Thanks for your feedback.

-Steve

Re: Speed of Lite-C? [Re: Zergling103] #340175
09/01/10 17:16
09/01/10 17:16
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
lite-c is a real c compiler but it doesn't do most of the optimizations performed by the big compilers such as vc++, gcc,...

i guess on average the speed is about 50% of those (it still should be a lot faster than java and actionscript though). probably comparable to tinyc. but to be sure you would have to do some benchmarks.

Re: Speed of Lite-C? [Re: ventilator] #340176
09/01/10 17:45
09/01/10 17:45
Joined: Jul 2010
Posts: 13
Z
Zergling103 Offline OP
Newbie
Zergling103  Offline OP
Newbie
Z

Joined: Jul 2010
Posts: 13
Thanks, ventilator.

What would you recommend? Should I write the intensive stuff in a DLL or use Lite-C? Would using a DLL be any faster? Is there another alternative?

Re: Speed of Lite-C? [Re: Zergling103] #340177
09/01/10 17:48
09/01/10 17:48
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
for a physics engine it probably would make sense to use object oriented programming so c++ wouldn't only have a speed advantage. it also would be easier to reuse your stuff with other 3d engines later.

so probably i would use c++ for those tasks but not with performance as the main reason.

Re: Speed of Lite-C? [Re: ventilator] #340179
09/01/10 17:53
09/01/10 17:53
Joined: Jul 2010
Posts: 13
Z
Zergling103 Offline OP
Newbie
Zergling103  Offline OP
Newbie
Z

Joined: Jul 2010
Posts: 13
Thanks again! Being able to reuse code is important. I have the habit of re-writing everything for each project I start, and its fatiguing. I'm trying to break it by putting all code that might be reusable in a common tools folder, separate from the project I originally designed it for.

Although, I'm most likely using PhysX for the physics in this project.


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