Jump to content

mazex

Members
  • Posts

    252
  • Joined

  • Last visited

Posts posted by mazex

  1. Originally posted by Cpl Steiner:

    </font><blockquote>quote:</font><hr />Originally posted by mazex:

    Programmers that don't comment their code should be taken behind a shed and shot. There is never an excuse to not comment your code. <- Period

    mazex,

    I have been a programmer and I always commented my code. Indeed, I probably over-commented it. However, I was in a large development team where you could be working on anything at any time, not a one-man operation like BFC. Whilst I agree that commenting code is important I think you shouldn't be too harsh on Charles, who by all accounts is an exceptional coder. He probably just didn't have the time to thoroughly comment everything and didn't see the point as he was the only coder. Maybe he even left the comments out for a bit of added job security. If no-one else can understand the code I guess your job is safe! ;) </font>

  2. Originally posted by Cpl Steiner:

    Steve said that the CMx1 code was spaghetti with hardly any comments explaining what was going on. Consequently it was difficult to maintain and add features to. This is no fault of Charles but probably more to do with time constraints meaning he just didn't have the time to put in comments and structure the code better.

    Programmers that don't comment their code should be taken behind a shed and shot. There is never an excuse to not comment your code. <- Period

    /Mazex

  3. Originally posted by Kieme(ITA):

    Hello everybody!

    I'm not sure if this is a game related problem or not. Maybe somehow my computer has some problems with the rendering or similar.

    All settings at max. Vsync on. 7900GTX 512mb vram, dual core AMD, win XP, 163.71 drivers. aa and af 4x.

    Well, I guess the image you posted shows that they are now "lodding" the terrain as they should have from the beginning. The problem is from where the loddning is done - what's the center of the world? ;) The 1.04 terrain lodding works for me, but I think that there should be some levels in the terrain LOD:s. As it is now there seems to be only two levels which makes spotting the LOD-switch too easy. A few more levels and it would be much more transparent I guess...
  4. Originally posted by Battlefront.com:

    Kevin Kinscherff ,

    </font><blockquote>quote:</font><hr />I wonder what was the technical breakthrough that increased FPS. If it's not secret it would be interesting to know.

    What we did was identify that one of the biggest reasons for slowdowns was the 8x8 grid being drawn in the distance with one texture for each 8x8 spot. This is the way to get maximum detail, but it is slower. After it became clear to us that people would be willing to take a small hit to the graphics to get a larger boost in speed, Charles recoded the engine to use a technique that FPS and RTS games use. That is...

    Instead of drawing a unique tile for each 8x8 spot, large sections of the map are drawn using a portion of a much larger texture. The portion shown matches the terrain type, so you still can see what the different terrain types are, but the detail is reduced because you're not seeing a "custom made" tile for that one spot. The thing is that it's hardly noticable at medium range, not noticable at all at far range. Therefore the graphics quality tradeoff isn't as much as we initially thought it would be, but the speed boost is MUCH better than we hoped for. In other words, we didn't use this technique earlier because we thought the tradeoff would be noticably worse graphics for a small increase in speed. We're very glad we were wrong about both :D

    Steve </font>

  5. Originally posted by Battlefront.com:

    Thanks guys!

    I started a thread in the regular Forum because more of the affected people are likely to see it there. Most of you have seen it already, but here it is:

    http://www.battlefront.com/cgi-bin/bbs/ultimatebb.cgi?ubb=get_topic&f=52&t=003114

    The upshot is that we still do not know what the problem is, though it appears that v1.04 has made dramatic improvements "by accident". Meaning that we did not specific to fix the problem, though it looks like most people are now able to play at a reasonable rate. The problem is still there, thuogh, and that means we have to keep trying to figure out what it is.

    Thanks for hanging in there!

    Steve

    Good work! Can't help the following comment though. Here's a little quote from a post I made the 17:th of september when Nvidias 8800 drivers and hardware where beeing blamed for the problem:

    Originally posted by mazex:

    ...In many cases you find out that some cards don't work as fast as they should and when you hunt down those bugs you often realize that you had done something in a sub optimal way. Thus the fix increases the performance for the older cards too...

    As the 8800 problem is gone now with the same drivers, without doing some ugly workaround for a specific card, It's really hard to not put in a little "well?" here smile.gif

    /Mazex

  6. Running Vista? OpenGL support in Vista is crap. In XP, IL2 runs better in OpenGL than in DIrectX with my 8800GTX at least. I'm running at 100+ fps at maximum settings all the time so in that game OpenGL wirks fine in XP at least. Nevertheless, the terrain engine in CM:SF seems to be the problem just as you say. Check out my thread here where I try out a completely empty map with 1600x1600 meters of dirt with lousy fps (11)...

    /Mazex

  7. Originally posted by Rollstoy:

    Having played the World in Conflict demo for a little while I have to say I am shocked how technically inferior the game is to CM:SF!

    WiC technically inferior to CM:SF? I'm not sure that I agree on that one. Name another game on the market with less bugs in the 1.0 release, and a better RTS 3D engine... Comparing the gameplay in WiC and CM:SF is like comparing Halo and Operation Flashpoint from a realism viewpoint. And yes, Massive has ~100 employees focused on WiC so it's not hard to realize that Charles has no way of doing an engine like that...

    /Mazex

  8. There sure are problems with the rendering engine. Even though your 22 fps for a primitive map with a bunch of units is better than my 11 with the 8800GTX , it's still WAY to bad. It's not like the GeForce 6800 is a bad card. An old Geforce 2 card should be able to get a way higher score on a practically empty flat map like that...

    Just my 2 cent's. I'm almost thinking of writing an example game that renders a map like that wuth a few tanks to see what fps I could get...

    /Mazex

  9. Originally posted by KNac:

    Couldn't make any testing (sorry, soccer evening hehe), but there is an update on 1.04 on the main forum http://www.battlefront.com/discuss/ultimatebb.php?ubb=get_topic;f=52;t=003051

    interesting news about imrpoved terrain rendering which as per this post a lot of problems seem to come from. yeah, nvidia drivers and interaction w/ the hardware may not be the best, but is obvious the game has got serious problems in that department and it's suboptimal, to say the least.

    cheers

    Hmm, interesting... Right in line with the findings here as you say.

    Did a small test scenario called "The 1600" centered around a very exiting battle over 1600x1600 meters of dirt in the middle of nowhere! It's some completely flat dirt with a house on each side and a tree in the middle to fight over. Company sized units on each side and free LOS naturally! I also did an empty version of the mission with no units, houses or trees, just those damned 1600x1600 meters of dirt!

    See my tests below (Fraps fps score in yellow as usual):

    First off, the empty version of the scenario, starting as Blue and looking at the startup view:

    the1600_empty.jpg

    OK, and then the sharp version, startup blue - before starting the mission timer:

    the1600_prestart.jpg

    OK, finally an image from the battle after starting the timer, lots of carnage!

    the1600_in_the_heat.jpg

    Anyone notice something that is the same on all three images?

    These amazingly exiting battles are downloadable here (copy to "?\Combat Mission Shock Force\Game Files\Scenarios" directory):

    The 1600

    The 1600 (empty version)

    /Mazex

    [ September 23, 2007, 12:40 PM: Message edited by: mazex ]

  10. OK - as there is a lot of talk about this problem beeing caused by bad drivers from Nvidia for the 8800GTX i tried the same test as above on my Media Center...

    Computer:

    A7N8X-Deluxe Motherboard

    AMD Athlon XP3000+ 400Mhz FSB

    2 x 512Mb PC3200 memory

    Asus X800 Pro (256Mb) - Catalyst 7.9 drivers

    MCE 2005

    CMSF Settings - same as above but 1360x768 as that's what my LCD TV likes best (less pixels than 1280x1024 to render by ~30%)

    First one with a plain dirt map 512m x 512m. The X800 produces 48 fps, the 8800GTX gets 152

    preview_512_512_dirt_mceX800.jpg

    1600 x 1600 meter dirt map. It runs at 14 fps while the 8800GTX gets 10 fps.

    preview_1600_1600_dirt_mceX800.jpg

    OK, the 8800GTX should increase it's lead instead of loosing it at the larger map - but still 14 fps for showing 1600x1600 meters of dirt for the X800 is REALLY bad to!

    Fix the underlying problem and everyone will be happy. Stop blaming Nvidia...

    /Mazex

    [ September 23, 2007, 10:08 AM: Message edited by: mazex ]

  11. -> continued from post above...

    OK so I tried out some other tiles to see if it was only some that caused the problems (using the map size of 1024x1024 at first)

    Grass (drop to ~23 from the ~40 for dirt) :

    preview_1024_1024_grass.jpg

    Other stuff (rocks etc seemed to be like dirt, around 40). The highest performer I found was pavement2 ("plain" texture without small rocks and such like dirt and the others). Here it is on the 1024x1024 map - increase to 135... A lot better but still no good for a plain map though!:

    preview_1024_1024_pavement2.jpg

    OK, so I tried to go up to a 1600x1600 meter map with pavement2 (that cause 10 fps with dirt). Went from 10 fps to 65. The interesting thing is that from this altitude they look almost identical ;) :

    preview_1600_1600_pavement2.jpg

    OK guys. Look up how you render the plain tiles. Getting 10 fps for rendering a small square of dirt is NO good. Get some help as that must be really easy to fix. Do you have some array of all the tiles that is looped through and each tile is rendered as a new texture instance? Is it all the "small garbage" on the tiles that is still processed from FAR away? Whatever, it must be possible to fix. I would really like to see the FPS that Charles is getting when rendering a plain 1600m x 1600m map with dirt on the 8800GTX machine that you have no problems with. Rendering a flat terrain box on an 8800GTX should be running at 500+ fps or something.

    Anyone else with another card that can try a 1600x1600 dirt map and post the fps?

    Good luck! /Mazex

    [ September 23, 2007, 02:24 AM: Message edited by: mazex ]

  12. Originally posted by KNac:

    you should start testing out with different map sizes, with and without units, and feature full or clean.

    You're naturally right. I did not intend to do the "camera ride" bunch of images at first, I just wanted to show that my fps was not at 10 all the time and realized that a "ride" like that may be interesting to the devs if they have no machine that behaves bad themselves.

    Well, amazingly I haven't even fired up the editor in CMx2 yet so I did so to try it a bit more structured, to see which objects cause problems etc. It was easier than that. Just showing a plain 1600m x 1600m flat empty dirt map gets my fps down to 10.

    Here's how I tested (see system specs and CMSF settings in my first post in this thread- yellow Fraps fps numbers in the top right corner):

    First I did a plain 512x512 dirt map.

    editor_512_512_dirt.jpg

    And previewed it (going straight up from the "start" corner and looking slightly down against the other corner) - the fps is OK but an 8800Gtx card should do better on a plain surface just covered with textures:

    preview_512_512_dirt.jpg

    OK - I increased to 1024x1024. Already in the editor it was becoming a pain to work. The mouse lag is really annoying (8fps!)

    editor_1024_1024_dirt.jpg

    OK - a preview in the same way as before of the flat 1024x1024 dirt map:

    preview_1024_1024_dirt.jpg

    OK - lets go to 1600m x 1600m with flat dirt. I didn't go above this as the editor becomes completely unresponsive...

    editor_1600_1600_dirt.jpg

    Preview in the same manner - here we have those 10 fps. Does not matter with the number of Strykers etc or LOD of distant vehicles. Just painting the completey flat dirt causes the 10 fps!

    preview_1600_1600_dirt.jpg

    (continued)

    [ September 23, 2007, 02:21 AM: Message edited by: mazex ]

  13. Hi!

    I read this in the CM:SF forum ("What's your frame rate?" thread):

    Originally posted by Battlefront.com:

    The problem with the 8800 is quite interesting. For the people that have problems with it (and not all do), there seems to be a 10fps or lower response to just about all scenarios no matter what the settings are. Something is obviously wrong with that! We're continuing to try and nail that down.

    Steve

    I just want to clarify that this is not the case (for me at least!). On some large maps (Allahs Fist etc.) the framerate is awful for me - IN SOME DIRECTIONS! On other maps it's just fine. As an example I've put together a "camera ride" from one end of the first campaign mission map to the other - and back again. I hope that it may be of some help in understanding the 8800GTX problems. Some LOD/Z-buffer problem maybe? Bad models of the Stryker? From one direction (see the jump in fps between image 7 and 8 - the only difference is that a corner of a Stryker is visible on image 7). When going in the other direction (image 22ff) there are no such differences.

    Well, you have said you don't have any 8800GTX machine that behaves bad so if it's of any help here are the 26 images of the "camera ride".

    NOTE! fraps fps number in top right corner...

    My settings and hardware:

    Game settings:

    Resolution - 1280x1024

    Models - balanced

    Textures - better

    Vertical sync - off

    AA - nope

    Hardware:

    Intel Core 2 Duo E6700 (@3.0Ghz - 1200Mhz FSB)

    Asus Striker Extreme NForce680i SLI MB

    Asus GeForce 8800GTX 768Mb (163.69 drivers)

    2 x 1Gb Corsair PC6400 XMS2 XTREME CAS4 @900Mhz 4-4-4-15 2,1 Volt

    1 x RAPTOR 150GB + 2 x Raptor 74Gb (raid 0) + Hitatchi T7K500 320GB

    Creative SB X-Fi Xtreme Gamer Fatal1ty Professional

    Dual boot - Windows XP SP2+ and Vista64 Ultimate

    Starting image - outside of map, looking AWAY from map:

    1_out_of_map_looking_at_skybo.jpg

    Turning around 180deg, looking towards the fort...

    2_180deg_from_1.jpg

    Moving closer...

    3_closer.jpg

    Moving closer...

    4_closer.jpg

    ...

    5_closer.jpg6_closer.jpg7_closer.jpg

    Interesting leap in fps from above image (28->53) when the Stryker goes out of sight... 8_closer.jpg

    (continued)

    [ September 22, 2007, 04:06 PM: Message edited by: mazex ]

  14. Originally posted by Xanthos581:

    I have a quad core intel and the 8800GTX card and I don't seem to be having problems but maybe I just don't know what perfect it. How do you find the frame rates so I can compare?

    Download fraps at

    http://www.fraps.com/

    Install it and start it up and minimize it. Then start CMSF and you will have a big yellow number in the top right corner showing your FPS (if you have a Logitech G15 keyboard, you will get a nice graph of the fps in the keyboard LCD too).

    Good luck! /Mazex

  15. Originally posted by Battlefront.com:

    Oh, and Mazex posting a pictures of a DirectX game is rather lame. Might as well show a picture of a game on X-Box or Wii for all that it matters. Or how about I show a picture of what CM:SF looks like on my system compared to World in Conflict? So let's stop with the childish and utterly pointless posts like that, OK? It won't make us work any harder to find a solution, but it does make us think VERY poorly of the customer intelligence.

    Steve

    Well, I posted an image from WiC as I have a close relationship with the development team ;) I know it's Dx but it's kind of an interesting comparison as the units used are very similar even though the games are very different in style... Have tried to convince the CEO that a serious turn based version of WiC would be interesting but it's hard to get funding for that as you know...

    Here's one from an OGL game from my rig taken a few minutes ago if you like that better. An interesting side note is that ET:QW has been "capped" at 30fps. Never goes above it at any settings and almost never drops below it at any settings on the 8800GTX. When the whole world explodes around you it dips to 25-26 at max/max setting.

    Enemy Territory : Quake Wars OpenGL 1280x1024 ALL settings max (16x aniso, 16x AA)

    ET.jpg

    It's rather refreshing to be called unintelligent. Don't remember the last time actually ;)

    /Mazex

  16. Originally posted by Battlefront.com:

    Again, I do not expect you customers to be happy with the performance of CM:SF on your 8800 cards. I do not expect you to stop complaining about it until we get it fixed. What I do expect you to do, however, is cut us some slack and understand the basic facts without being dinks about it. The 8800 is buggy and we're doing our best to work around it. Those are the facts, please don't insult your own intelligence by disputing them.

    Steve

    Thats a tone I like more than the "It's the drivers fault". Being a bit pissed off like above is fine with me as long as you don't blame the whole problem on the 8800GTX drivers which was the undertone I felt in some earlier posts. Sure, it's damn annoying trying to track down bugs like this but It can be done! The problem is always the least expected and almost always extremeley easy to correct when found. That does not make it a bit less annoying ;) A side note, do not forget blaming M$ as they where the ones that put the axe in OpenGL by crippling the OGL API in Vista...

    Good luck! /Mazex

  17. Beeing evil by nature, I could not resist this... If it's the drivers fault then have a look at these two screenshots I captured today using my 8800GTX of two recent games with M1A1:s and T72:s fighting it out (Fraps FPS in yellow in the top right corner):

    Nvidias latest 163.69 drivers at 1280x1024

    CMSF paused before start - balanced models, better textures, 10 fps

    CMSF.jpg

    World in Conflict, battle going on with smoke and helicopters etc - all settings at max, 72 fps

    WiC.jpg

    Which one looks best and who has used the crappy drivers in the best way is up to you ;)

    /Mazex

  18. Originally posted by Battlefront.com:

    You're correct... all video card drivers are buggy smile.gif This has been true since the dawn of time. I remember a really funny bug in one crad driver back when Charles was on his own doing his flight games. The bug drew bitmaps to the screen backwards. Which meant you saw your plane flying backwards and shooting out the rear. Funny, unless you had that card :D

    FC2? Great game. Those where the days... Played it recently and it runs like a charm on the 8800GTX ;)

    /Mazex

  19. Hi!

    Sorry to say it but it does not fix the issues with my 8800GTX at least... FPS at startup of Allahs Fist seems to have gone from 9 to a weak 10 so it's maybe worth the download? ;)

    Game settings:

    Resolution - 1280x1024

    Models - balanced

    Textures - better

    Vertical sync - off

    AA - nope

    My rig:

    Intel Core 2 Duo E6700 (@3.0Ghz - 1200Mhz FSB)

    Asus Striker Extreme NForce680i SLI MB

    Asus GeForce 8800GTX 768Mb

    2 x 1Gb Corsair PC6400 XMS2 XTREME CAS4 @900Mhz 4-4-4-15 2,1 Volt

    1 x RAPTOR 150GB + 2 x Raptor 74Gb (raid 0) + Hitatchi T7K500 320GB

    Creative SB X-Fi Xtreme Gamer Fatal1ty Professional

    Dual boot - Windows XP SP2+ and Vista64 Ultimate

  20. Originally posted by Cameroon:

    Just a point, there's no way that the 8800 is the most popular card - it's far too expensive to be that. It may be the fastest card and the best card, but not most popular.

    Otherwise, you've shot yourself in the foot with this argument:

    Don't go blaming that you have more advanced AI than WiC etc as CMSF clearly runs OK on older cards etc.

    If it isn't drivers, then it wouldn't run faster on older hardware. On top of that, on the 8800 based machines that they have they can't reproduce the horrid framerates. Whether it's a bug in the drivers - which it appears to be from those two facts alone - or it's a bug in the game, until they figure out why - they can't work around it.

    Comparing it to other OpenGL games just isn't as useful. It's a valid point to say that the 8800 can chew up and spit out OpenGL or DirectX; but there is obviously some combination of factors in its use in CMSF that can trigger a massive bug in either the card or the OpenGL drivers for that card.

    I've also been (and am on my own time) a software developer, remember, it doesn't do this on all the 8800s. It's a huge bug (whatever and wherever it is), but fixing or working around something that you can't reproduce on your end is not exactly easy.

    Well, I'm not saying that it isn't a driver issue. What I'm saying is that during the beta phase you have to try out the most popular cards out there in different combinations (GPU/CPU/Chipset etc) to make sure that your code runs well on most of them. In many cases you find out that some cards don't work as fast as they should and when you hunt down those bugs you often realize that you had done something in a sub optimal way. Thus the fix increases the performance for the older cards too. Been there, done that! As ALL other games run fine on my rig, I think it's a bit tough to blame the drivers. I see that ATI gets their share of blame in other threads here too. Really weird - the CMSF renderer is written in an optimal way and for some reason that other developer don't run into the game gets a lot of unexpected driver issues. As both Nvidia and Ati gets blamed, which cards where used during development and testing? Matrox?

    Sure, this seems to be one of the bugs that is not immediately reproduceable on all 8800 cards as there seems to be some other hardware/software combination that casues it. Still - it seems like many customers are experiencing it and it should not be impossible to track down. Does the Open GL game Quake Wars run on single digit FPS on my rid with ALL custom sliders in the bottom + 16 aniso and 16 AA? Nope, NEVER drops below 30 fps. But I'm fairly sure that during many phases of the development it would have!

    Looking on the list of sticky threads here it's rather clear that this is not an isolated bug in the 8800 drivers. Fixes for ATI, 7xxx etc.

    /Mazex

×
×
  • Create New...