Increase draw distance

Ideas and suggestions for how to improve the Warzone 2100 base game only. Ideas for mods go in Mapping/Modding instead. Read sticky posts first!
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: Increase draw distance

Post by Zarel »

Saberuneko wrote:Really? As I heard, it's written in C and C++, I'm right? maybe porting it to some other lighter one would make the whole thing more faster, trust me. I've seen ports from VB (yes, I know is crappy) to lua, and it really works faster.
C and C++ are some of the lowest-level languages there are - the only thing "lighter" than C in common usage is assembly, and that's slower because compilers have better C optimization. They're orders of magnitude faster than Lua.
Saberuneko wrote:And... what do you mean with "12-year-old's weekend project?"
I mean that Warzone is a major project with many skilled developers. Anything "simple" that can make the game faster has already been done - further improvements require a lot of work, or a lot of insight into how the code is written.

As for the programming language, it will remain in C and C++, for many reasons including that C is (arguably) the fastest language in existence. That's why a new programming language will often talk about being "25% as fast as C" or "50% as fast as C" or "90% as fast as C".
User avatar
Saberuneko
Regular
Regular
Posts: 558
Joined: 15 Jan 2010, 18:20
Contact:

Re: Increase draw distance

Post by Saberuneko »

Oh! Well... then I have nothing to complain, keep the good work. ;)

And, sorry... I just don't know much C... I'm busy with some other ones at the moment. :P
crux
Trained
Trained
Posts: 139
Joined: 16 Jan 2010, 03:21

Re: Increase draw distance

Post by crux »

Zarel wrote:C and C++ are some of the lowest-level languages there are - the only thing "lighter" than C in common usage is assembly, and that's slower because compilers have better C optimization.
That isn't true, in most cases, assembly is faster than what the compiler can do but it isn't portable so people don't use it.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: Increase draw distance

Post by Zarel »

crux wrote:That isn't true, in most cases, assembly is faster than what the compiler can do but it isn't portable so people don't use it.
Nope, in most cases, compilers are better: http://webster.cs.ucr.edu/Page_TechDocs ... bate1.html

15 years ago (when that article was written) compiled C code was be faster than the assembly written by your average coder. Compilers have only gotten faster.
Night_0wl
Greenhorn
Posts: 13
Joined: 12 Jan 2011, 03:57

Re: Increase draw distance

Post by Night_0wl »

Sorry to necro, and please disregard a lot of the discussion above as it seems to be borderline off topic, but with the start of the new year, would it be possible to add another request to increase the zoom distance?

It's quite possible that over the last years worth of builds that this has already done to some extent without my noticing, but I have been introducing (pushing) the game on a few friends and keep hearing the question if it's possible to zoom out further. After some thought, I concluded that it's something I wouldn't mind either.

Any economical, relatively pain minimal, way to make this happen? (Especially if it were possible to allow the user to define the draw/view/zoom distance in options to fit their hardware capability?)

TBH, I'd personally like to be able to zoom as far out as to see an entire 64x64 map if my hardware could run it and should I desire to do so.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Increase draw distance

Post by Per »

Zoom distance has been increased slightly in master. Increasing it even more than that makes the game look like crap, so I think we have hit an upper limit.
Night_0wl
Greenhorn
Posts: 13
Joined: 12 Jan 2011, 03:57

Re: Increase draw distance

Post by Night_0wl »

Sounds good to me, thx.

(btw, on my machine i've noticed that when I do zoom out, all of the units, no matter what color, receive hue's of blue on various parts of the turrets typically but sometimes bodies and props. It doesn't bother me but just wondering if anyone else noticed that? Perhaps if we were to zoom out even further it would be one of the contributing factors to looking even worse as per mentioned?)
Post Reply