Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AmazingHenry

macrumors 65816
Jul 6, 2015
1,285
534
Central Michigan
Alright, are we done here? Because I'd like to know the answer to a !eoRebirth related question z970mp asked... Is it possibly to optimize normal Leopard to SL speeds?
 
  • Like
Reactions: z970

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,463
16,160
California
Moderator Note:

Thread closed for review.

Thread opened. Several off topic comments arguing about software licensing have been removed. Please stay on topic.

If you would like to discuss software licensing, please use or start a thread on that topic.

Thank you.
 
Last edited:

PowerfulEra

macrumors member
Jul 20, 2017
97
49
What happend to this tread and ways still thanks tomfor your efforts and community will wait you to relase new version patiently
 
  • Like
Reactions: AmazingHenry

AphoticD

macrumors 68020
Feb 17, 2017
2,283
3,466
I'm just taking a break from LeopardRebirth

@SourceSunTom, when you're ready to return, take a look at the zipped xcodeproj here for a different technique on processing the blurred dock.

This method bypasses the need to load the image into memory, send it to the GPU, scale, blur, cache, etc and just plugs directly into a private CG API to process the blur "inline" (GPU direct) on anything behind any subclassed instance of NSWindow. Adjust the alphaComponent value of an NSColor set as backgroundColor to the window.

It should fix the look of your blurred dock against a black background and remove the need to stretch and/or repeat the image when the dock icons scale up and down.

Next will be to figure out how to plug this same technique into the Finder's sidebar...

Cheers,
-AphoticD

BlurWindow-screenshot.jpg

EDIT: This technique requires a Core Image enabled graphics card. It failed on my PowerBook G4 Titanium (Radeon Mobility 9000) and Mac mini (Radeon 9200).
 

Attachments

  • BlurWindow-xcodeproj.zip
    58.1 KB · Views: 222
Last edited:

SourceSunTom

macrumors 6502
Original poster
Jul 7, 2016
258
292
France
@SourceSunTom, when you're ready to return, take a look at the zipped xcodeproj here for a different technique on processing the blurred dock.

This method bypasses the need to load the image into memory, send it to the GPU, scale, blur, cache, etc and just plugs directly into a private CG API to process the blur "inline" (GPU direct) on anything behind any subclassed instance of NSWindow. Adjust the alphaComponent value of an NSColor set as backgroundColor to the window.

It should fix the look of your blurred dock against a black background and remove the need to stretch and/or repeat the image when the dock icons scale up and down.

Next will be to figure out how to plug this same technique into the Finder's sidebar...

Cheers,
-AphoticD

View attachment 712894

EDIT: This technique requires a Core Image enabled graphics card. It failed on my PowerBook G4 Titanium (Radeon Mobility 9000) and Mac mini (Radeon 9200).
Looks really nice, will it affect performance I can't test it rn
 

AphoticD

macrumors 68020
Feb 17, 2017
2,283
3,466
Looks really nice, will it affect performance I can't test it rn

It takes zero CPU time when the window is in the background (like it would be on the dock). The filter is processed directly on the GPU. Build and run the BlurWindow.xcodeproj and it fluidly blurs out the background on any Core Image enabled Mac. Adjust the slider to see the blur strength (radius) shift in real time.

Running the technique on a PowerBook G4 12" 1.5Ghz with the Nvidia FX Go5200 GPU does show a notable stuttering when moving windows around. As a test, I tried resizing the BlurWindow to be about the size of the dock and put it at the bottom of the screen. Everything is super smooth (as normal in Leopard on this 'book) until the moving window comes within proximity of the "BlurWindow" and then it begins to stutter a little as the area is redrawn with the blur and the shadows are recalculated.

There are no signs of this stuttering on my PowerBook G4 15" 1.5Ghz with a Radeon Mobility 9700 (64MB) GPU, which just goes to show how much more capable the Mobility Radeons were over the "Go" series Nvidia processors.

This private API method CGSAddWindowFilter was disabled in Mavericks and up. Apple introduced the public NSVisualEffectView class in Yosemite to do a much tidier job of these "window effects".
 

clamshell_g3

Cancelled
Jun 28, 2017
22
14
updated now Mac iBook is so much faster :) this is awesome idk why but my iBook is so much faster I love it but I think in the next update you can remove the software update menu on the apple logo and some tiny details because its no longer buggy and slow
 

AphoticD

macrumors 68020
Feb 17, 2017
2,283
3,466

See video playing with the blurring technique on my PowerBook G4 15". I'm pushing the resources by setting the wallpaper to randomly cycle every 5 seconds and (patiently) loading a new game of Doom 3.

Notice that despite all of the demand, activity monitor shows only minimal CPU usage for BlurWindow and zero CPU time when the window is not at the front, even if it sits atop a moving image.

Not bad for a 12 year old (single core) machine!

*My apologies for hijacking your thread again...*
 
  • Like
Reactions: AmazingHenry

zappaesque

macrumors member
Jun 10, 2017
73
60
Does this API exist for Tiger, by any chance?

I'm no programmer but I'm curious since I also run an iBook G4 with Tiger and Henry's theme.
 

AphoticD

macrumors 68020
Feb 17, 2017
2,283
3,466
Anyway we can get a black menubar with white text? That would be killer. :D

Try Nocturne 2.0. It has a dark menu bar option. It requires a Core Image capable graphics card. I use it on all of my PowerBook G4s, except for the Titanium.
[doublepost=1502770803][/doublepost]
Does this API exist for Tiger, by any chance?

I'm no programmer but I'm curious since I also run an iBook G4 with Tiger and Henry's theme.

Well, I tried and it was artifact city. It does technically work, but my implementation killed Tiger's WindowServer, resulting in a lock up like I have never seen before. Not a Kernel Panic, but I had to SSH in and send a "sudo reboot" command to make a clean escape!

It is possible, so I'll keep playing with it.
 
Last edited:

G5-PowerLifter

macrumors member
Feb 18, 2017
69
36
I don't have any idea, have other important stuff to do

I don't doubt that, it would be just cool if you can or want to continue on your PPC Theme. I for example have that problem, that when I watch YT in full screen, I can still see the transparent frame of the Dock (unless I hide the Dock). However your theme is amazing nontheless, I'm using it on all of my PowerPC Systems
 

z970

macrumors 68040
Jun 2, 2017
3,589
4,541
I don't doubt that, it would be just cool if you can or want to continue on your PPC Theme. I for example have that problem, that when I watch YT in full screen, I can still see the transparent frame of the Dock (unless I hide the Dock). However your theme is amazing nontheless, I'm using it on all of my PowerPC Systems

Just because I can say this, I second what G5 says.

If you do end up wrapping it up now, your theme will singlehandedly go down in history as one of the greatest PowerPC community additions ever. Everyone is very grateful for what you've accomplished.

But... Just between you and me... If you do actually finish up now, although nobody wants to say it, I think I may speak for everyone when I say that an uninstaller of some sort truly would be marvelous.

I've said my piece. Now I'm gone.

Thank you Tom.
 
Last edited:

AphoticD

macrumors 68020
Feb 17, 2017
2,283
3,466
As cool as the theme is it is a little rash to not include an uninstaller. I understand this is not entirely @SourceSunTom's fault. The package installer looks like it's based off the Mountain Leopard theme installer scripts. That package's uninstaller was 50MB+ and comprised of all the factory Leopard icons and theme files and just copied them back into place. This uninstaller should work for 90% of Leopard Rebirth in terms of icons and visual assets.

The best method would be to write a script which firsts backs up each individual image/icon/plist/nib, etc and then run the installer packages. Uninstalling would be a matter of reinstating all of the backed up files.

I have an idea for an uninstaller which would read all of the receipt files (lsbom) and then copy the original files back into place from an untouched Leopard. No guarantees this will work with every localization, but I'll have a play around.
 
  • Like
Reactions: z970 and CooperBox

CheeseBread365

macrumors regular
Aug 27, 2017
141
13
Ann Arbor, MI
when i first got it, a video started playing on the G5 it lagged so bad i had to do the 5 second shut-off. eventually, it got through, but not after 4 hours of waiting. great job though! looks really nice! :D
[doublepost=1503946187][/doublepost]ALSO, glitch i noticed, when you have "magnification" on in the dock, hover you mouse over the recycle bin and you will see the glitch
 

SourceSunTom

macrumors 6502
Original poster
Jul 7, 2016
258
292
France
when i first got it, a video started playing on the G5 it lagged so bad i had to do the 5 second shut-off. eventually, it got through, but not after 4 hours of waiting. great job though! looks really nice! :D
[doublepost=1503946187][/doublepost]ALSO, glitch i noticed, when you have "magnification" on in the dock, hover you mouse over the recycle bin and you will see the glitch
The lag at the video is strange... I wonder why it did that to you
For the dock, it's normal it does that, it's how it's coded for now, I'll improve it a little when I can
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.