Planetside Software Forums

General => Terragen Discussion => Topic started by: jo on August 27, 2009, 11:04:08 PM

Title: TG2 Mac and OS X 10.6 Snow Leopard
Post by: jo on August 27, 2009, 11:04:08 PM
Hi,

Now OS X 10.6 is available I can give you some information about how TG2 Mac runs on it.




Please note: The edit field display problem described below is now fixed in Terragen 2.1, which is available now. See here for more information:

http://forums.planetside.co.uk/index.php?topic=8268.0

Scaling for threaded renders is now improved and using up to 16 threads can be worthwhile in some scenes now. OS X 10.6 is still markedly faster for rendering than OS X 10.5.

The Free edition with these improvements will not be available until January 2010, so I'm leaving this information about the edit field display workaround etc. for now.




First the bad news. The most important thing is that there is a problem with edit text field display on OS X 10.6. It looks as if the text has been shifted off to the left. Some edit text fields, those which are displaying numbers for example, might look as though the numbers have been clipped in half. In the worst cases, which are in things like the node name parameter in parameter views, the text may not be visible at all.

Fortunately there is a simple workaround for this, which is to simply click in the text field or tab to it. The text will then display correctly. You do need to watch out for this though because, for example, it can give the impression that there is no heightfield blending shader when in fact there is.

I have been able to work around this problem and it will be resolved in the next public release. I'm not sure when that will be as there are a number of big improvements which are being tested by alpha testers and we need to make sure everything is ok with those before we can make a release incorporating the fix for the edit text field issue on OS X 10.6. I apologise for the inconvenience in the meantime.

Now for the good news. OS X 10.6 is noticeably faster for rendering on multicore machines, and I would expect the improvements are greater the more cores you have. As an example the 3dspeedmachine.com TG2 benchmark is 21% faster on OS X 10.6 than on OS X 10.5, using the same v2.0.3.1 of TG2. That isn't due to Grand Central Dispatch or anything, more down to Apple fixing a performance problem in a low level OS function. The speed improvement will vary between scenes, but it's good to get a speed boost just from upgrading the OS. Upgrading to OS X 10.6 is certainly worth considering.

TG2 Mac still has scaling issues and isn't yet able to fully utilise multiple cores past 4 or so. However with OS X 10.6 the 3dspeedmachine.com benchmarks is at least a bit faster when rendered with 8 threads than with 4 threads. The good news is that I have a good understanding of where the major scaling problems are happening and it should be possible to resolve them relatively easily. Due to the tricky nature of multithreaded development we will have to do some thorough analysis and testing to make sure everything is working as it should, so there are unlikely to be further scaling improvements in the next public release.

Regards,

Jo
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Falcon on October 06, 2009, 04:16:08 AM
For those of us who've held back on 10.6 partially because of TG2: Is there an update on this, or a (very rough would be ok) ETA on the next release?
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: jo on October 06, 2009, 04:53:43 AM
Hi,

A very rough ETA would be 3 weeks to a month unfortunately. I'm not sure it would be practical to put out a new release just with the text display fix, it would need a week or two for testing first anyway.

Regards,

Jo
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: pclavett on October 10, 2009, 10:19:10 AM
Hi Jo

Thanks for the information as I was about to open a thread to see if others had experienced this ! The text fields are mostly empty and the numbers are effectively all shifted to the left ! I thought that all my files were corrupted but they are fine when opened in the version on my 10.5 system disk. Most field do correct on clicking on them and the trick is to not change things by doing so.... such as very good typist like myself accidently adding a number or a letter which of course would then corrupt the file. For now will await your correction and deal mostly in TG2 on the 10.5 system... except possibly for final render.... if it is faster on 10.6...and my 8 core MacPro. I would then need to tell the software to use the 8 cores right ??? I have not been attributing all 8 cores to TG2 for now...after reading, I think it was Oshyan's, article on rendering stating that adding cores would sometime slow the rendering. What would be your advice for an 8 core MacPro... to maximize performance during final render ??? Appreciate your comments !

Paul
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: old_blaggard on October 10, 2009, 11:31:59 AM
I've noticed that I can usually get very good scaling on my Mac Pro (Nehalem - 8 cores, 16 threads) by always increasing the "Subdiv cache" setting to at least 150MB/thread. Clouds and skies can render using all 16 threads at maximum efficiency, but terrains (and objects) typically start to slow down at 6 or 8 threads. It's still not ideal, but it's definitely *much* better than it was under 10.5.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: jo on October 13, 2009, 08:19:14 AM
Hi,

Regarding how many threads to use on an 8 core Mac pro - it depends a bit on the scene. It's hard to give a concrete number I'm afraid.

Generally speaking the GI pass will scale pretty well with more threads. That might suggest that if you're using higher GI settings it might be worthwhile to increase the number of threads.

I think overall my suggestion would be between 4 or 6 threads. 6 threads might be faster but possibly only by a little bit, not the sort of amount you might expect from adding 2 extra render threads. Any speedup you may get from using more is likely to be minimal compared to the risk it may end up taking longer.

These are some times I got on 10.6 for a simple scene of a heightfield and 3d cloud layer, looking up more at the sky:

16 threads : 18:30
8 threads : 16:12
8 threads, 1200 MB subdiv cache ( 150 MB per thread ) : 16:41
6 threads : 13:57
4 threads : 13:58

A more complex scene with more work to do might render a bit faster with more threads because it will take longer to hit the parts of the renderer which cause bottlenecks with more threads, but it's hard to say.

I have to say I didn't see that there was better processor utilisation while rendering sky, just during the GI pass.

Regards,

Jo
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on October 31, 2009, 01:52:41 AM
I'm planning to get a Gulftown Mac Pro which will have 24 logical cores. Were those numbers with the currently released build or one in development? I know the Windows version handles more threads better, but does it work well with 24 threads yet?
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: jo on October 31, 2009, 03:04:04 AM
Hi Echrei,

The numbers are from the development build but we haven't made any major changes to the threading for the next release so they should be similar.

I don't think anyone has a 24 core machine to test on, so we can't say.

Regards,

Jo
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Falcon on December 04, 2009, 04:17:22 AM
May I ask again what the ETA is, because the month or so mentioned above has long since passed.

I don't want to rush you, just know whether it's worth waiting for the update before I upgrade to Snow Leopard.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Oshyan on December 05, 2009, 12:04:21 AM
We're in the latter stages of testing now, so it's safe to say it should be relatively soon. However this shouldn't hold up your upgrade to Snow Leopard. There are performance improvements that come with the upgrade itself, even without the changes to TG2.

- Oshyan
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: jo on December 15, 2009, 07:24:45 PM
Hi,

Terragen 2.1 with a fix for the edit field display problem is now available:

http://forums.planetside.co.uk/index.php?topic=8268.0

As we've developed the renderer there have been some good improvements to the threaded performance and scaling on OS X 10.5 and 10.6, but 10.6 is still definitely the one to have for best performance.

Regards,

Jo
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on December 20, 2009, 09:48:45 PM
I ran some tests using the benchmark from 3d Speed Machine to see how Terragen 2.1 with the object raytracing compared to 2.0. Using Terragen 2.1, it took longer to render in Windows 7 than in Mac OS which was a big surprise. Terragen 2.1 took longer without raytracing to render for both operating systems. These tests were done on a 2.6GHz MacBook Pro.

(updated benchmarks in following post)


Object Raytracing:
                     Mac OS 10.6       Windows 7
On                     23' 52"             25' 53"
Off                     27' 57"             31' 40"
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Oshyan on December 21, 2009, 01:50:03 AM
Very surprising results. Did you do these tests one-after-another, or were you comparing to older results from previous testing?

- Oshyan
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on December 21, 2009, 02:02:49 AM
The 2.0 results were from a previous testing and I had my times posted on 3D Speed Machine. The Windows version was always consistently faster before, I'm not sure why it isn't now. I ran the render a couple times on Windows just to make sure.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Oshyan on December 21, 2009, 08:54:01 PM
Honestly the results are so odd I wouldn't trust them without re-testing on the current system with both versions. Has anything changed in your software environment - new antivirus, etc?

- Oshyan
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on December 22, 2009, 04:23:49 PM
I don't believe so, I had antivirus turned off. I'll test again once some actual renders have finished. I'll also see if the size of the subdiv cache on Windows produces different results. On Mac OS, setting it to 1200 gave the best times, so I had it set the same on Windows.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Oshyan on December 22, 2009, 07:24:00 PM
Cache size should generally be 100MB per thread, to keep it essentially the same per-thread as the defaults. One difference unaccounted for may be the number of threads with the old vs. new tests. What system are you running? How many CPUs and cores? How many threads did you use and have you set a custom number of threads in the preferences?

- Oshyan
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on December 23, 2009, 01:49:38 AM
I'm using the machine in my sig, a 2.6GHz MacBook Pro. It's set to using 2 threads as it should be. I haven't set a custom number of threads. I found that upping the cache size from 400 to 1200 took 4 minutes off the render time for that benchmark.

I'll run some benchmarks tomorrow with Terragen 2.0 and 2.1 on Mac OS 10.6 and Windows 7 x64 and different cache sizes for comparison. That benchmark takes about 30 minutes to render, so all the different benchmarks will take a long time to do. If you have a good scene for benchmark, with water, clouds, and some objects for example, that might take less time to render, feel free to e-mail it my way.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Kadri on December 23, 2009, 07:49:08 AM
Maybe this?

http://forums.planetside.co.uk/index.php?topic=5777.0

Kadri.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on December 23, 2009, 06:01:18 PM
Quote from: Kadri on December 23, 2009, 07:49:08 AM
Maybe this?

http://forums.planetside.co.uk/index.php?topic=5777.0

Kadri.

Thanks, but that's what I'm currently using.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Kadri on December 23, 2009, 06:07:22 PM
Ooops ! Trust me i read all of this topic but...lapse of memory can do this :)

Kadri.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on December 24, 2009, 01:59:08 AM
All these benchmarks are going to take awhile, at least 8 hours of computing time, and I'm rebooting between each run.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: echrei on December 27, 2009, 04:26:11 AM
Okay, here are the benchmarks. As you can see, bigger caches made it faster for the most part. Also, Terragen 2.1 does indeed seem to be slower for both Mac and Windows. With these tests, Windows is still faster for both 2.0 and 2.1. Computer specs are in my signature.

Mac OS 10.6:
Cache Terragen 2.0 Terragen 2.1
200MB 26:46 28:17
400MB 26:10 27:37
800MB 25:50 27:06
1200MB 25:39 27:14

Windows 7:
Cache Terragen 2.0 Terragen 2.1
200MB 26:18 27:43
400MB 25:05 26:33
800MB 24:34 25:33
1200MB 24:27 25:28
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Oshyan on December 30, 2009, 10:30:52 PM
Thanks for the full table - very useful info. Of course Raytrace Objects is not used in this test scene, so results are directly comparable, but not taking full advantage of the 2.1 update. It would be interesting to see if raytraced objects makes a difference in this case. The cache results are also interesting, although in general it does not seem to make a huge difference with practical values, given the need for 100MB cache per thread and 4+ threads being the norm these days.

Anyway, I'll do some testing of my own and see what I find...

- Oshyan
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: efflux on March 29, 2010, 10:53:22 PM
I just got a second hand Macbook Pro Core 2 Duo 2.4 Ghz with OSX 10.6. I have no Windows system now (PCs are Linux) and the Macbook is for audio but I'll eventually try TG2 again. You may notice I haven't been around here much lately. I got sick of render times but presumably now I'll have something semi decent.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Oshyan on April 01, 2010, 01:23:21 AM
Quote from: efflux on March 29, 2010, 10:53:22 PM
I just got a second hand Macbook Pro Core 2 Duo 2.4 Ghz with OSX 10.6. I have no Windows system now (PCs are Linux) and the Macbook is for audio but I'll eventually try TG2 again. You may notice I haven't been around here much lately. I got sick of render times but presumably now I'll have something semi decent.

Looking forward to seeing you back around again. :)

- Oshyan
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: efflux on May 09, 2010, 06:31:03 PM
Hi Oshyan.

I haven't got very far yet. The Macbook I got had a fault that I didn't initially find. Ebay purchase but the seller has replaced it so no major problem. I have now got the SSD drive (which I had put in the other one) back in the new one. TG2 will be tested soon.

This Macbook was got for a number of reasons connected with audio production. One is that it's more or less silent. The SSD helps this a little and although this Macbook is not running at full SATA II speed the SSD is amazing. Only the full read speed is slightly limited by the SATA limit so generally it rockets. If you have the full SATA II speed then SSD is a no brainer. Although quite expensive it is the best upgrade you could ever make. Don't get slow SSD though. It needs to be decent and also depends on the OS as far as garbage tidying on the SSD is concerned. You need to look into this. I won't describe it all here.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: Oshyan on May 11, 2010, 01:09:04 AM
Yeah I've definitely looked into SSDs before. Not going to have a big impact on TG2 rendering, so not worth the price for me at the moment, but I'm looking forward to them becoming more affordable. ;D

- Oshyan
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: efflux on June 03, 2010, 04:39:12 PM
TG2 renders around three times faster on my Macbook compared to my old PC. However, the Macbook screen is very poor compared to my Eizo. I can use the Eizo with the Macbook but it doesn't do full resolution. I can use it to check colours though.

Does this men I'll be churning out TG2 renders? I don't know. I'm into music now but most likely I will return to TG2 eventually.
Title: Re: TG2 Mac and OS X 10.6 Snow Leopard
Post by: efflux on June 03, 2010, 05:05:23 PM
Sorry. Accidental post.