Topic:   Windows vs Mac Runtime   (Read 20882 times)


0 Members and 1 Guest are viewing this topic.

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Windows vs Mac Runtime
« on: November 30, 2010, 01:31:37 AM »
My discoveries with benchmarks Mac vs Windows SC Runtime:

Windows is faster at graphics, but Mac is faster at scripting.

Windows
Optimized Sprites: 4-5 ticks
Speed Test: 3-4 ticks

Mac
Optimized Sprites: ~9 ticks
Speed Test: 1 ticks

Mac tests on a Mac Pro. Windows tests were in VMWare on the same Mac Pro. Windows XP was used for the tests.

Space CPU Usage
Mac: 41%
Windows: Less than 1%

Space CPU usage I just can't figure out at all. What the hell is wrong with RB graphics on the Mac???

EqwanoX


  • Administrator

  • GMG Extraordinaire

  • *****


  • Posts: 1180
Re: Windows vs Mac Runtime
« Reply #1 on: November 30, 2010, 12:33:10 PM »
thats so interesting, mac and windows have opposite results

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: Windows vs Mac Runtime
« Reply #2 on: November 30, 2010, 03:45:24 PM »
Weird... I did notice that SC3D ran way faster on my PC, although at the time I attributed it to my mac being slow.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Windows vs Mac Runtime
« Reply #3 on: November 30, 2010, 06:44:53 PM »
Perhaps it's the carbon framework.

I just converted the space game to cocoa to compare cpu and came across these results:


Here's the download if you want to try it for yourself:
Cocoa-ified Space - 10.5+

Though I only used basic cocoa drawing for the job. Plus the game is running and updating the screen 60fps. I bet OpenGl would be 1% or less.

P.S. Click in the window and you enter hyperspace. Keep clicking and soon you're well past the speed of light.
P.S.S. Yay for big pictures.
« Last Edit: November 30, 2010, 06:47:50 PM by Gandolf »

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: Windows vs Mac Runtime
« Reply #4 on: December 01, 2010, 04:35:04 AM »
Quote
Perhaps it's the carbon framework.


Bollocks. Quartz is Quartz, whether it's Carbon or Cocoa.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Windows vs Mac Runtime
« Reply #5 on: December 01, 2010, 11:13:21 AM »
Quote
Bollocks
Heh, yeah you're probably right.

Though sometimes I wonder. Some carbon games like Oberin and Yipe run incredibly slow on newer macs when they would run speedy on older macs.

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: Windows vs Mac Runtime
« Reply #6 on: December 01, 2010, 12:00:43 PM »
Probably because they're running on Rosetta.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Windows vs Mac Runtime
« Reply #7 on: December 01, 2010, 03:02:37 PM »
Hmm. Does Sc run on Rosetta?

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: Windows vs Mac Runtime
« Reply #8 on: December 01, 2010, 08:34:36 PM »
Quote
Hmm. Does Sc run on Rosetta?


No... Don't you remember the huge switch from RB 5.5.5 to RB 2009r4 that temporarily gave me diabetes?

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Windows vs Mac Runtime
« Reply #9 on: December 01, 2010, 09:31:39 PM »
Oh yeah. Heheh.

x


  • GMG-er

  • **


  • Posts: 247
Re: Windows vs Mac Runtime
« Reply #10 on: January 01, 2011, 09:29:29 PM »
Is there a difference in RAM usage.

If there isn't much of a difference, I am guessing its the way windows does their hyper-threading, thus rendering the %usage inaccurate.
« Last Edit: January 01, 2011, 09:31:32 PM by x »

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Windows vs Mac Runtime
« Reply #11 on: January 02, 2011, 09:39:37 PM »
Don't programs in general tend to run slower if you use an emulator?
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: Windows vs Mac Runtime
« Reply #12 on: January 04, 2011, 12:19:30 AM »
Quote
Don't programs in general tend to run slower if you use an emulator?

That might explain the speed test. But the graphics are so much faster, even in the emulator. If I were to boot native XP (with the ATI Drivers) it would be even faster.


Quote
Is there a difference in RAM usage.

If there isn't much of a difference, I am guessing its the way windows does their hyper-threading, thus rendering the %usage inaccurate.

I didn't note a difference in memory usage. All of the sprites, etc. are loaded into memory uncompressed ready for drawing.

I don't think VMWare passes through any hyper threading etc. It was only set for 1 CPU I think. Also, the runtime is not inherently threaded.