Mercurial > dwindows
comparison mac/dw.m @ 805:1a0bbb2aa9dd
Added flag to set window's prefered backing location to be video memory to see if it helps bitblt performance.
If it does... I should optimize this to only do so when a render window gets packed into a window.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 24 Mar 2011 02:07:12 +0000 |
parents | 5b4a831af8fa |
children | 16964b141964 |
comparison
equal
deleted
inserted
replaced
804:5b4a831af8fa | 805:1a0bbb2aa9dd |
---|---|
5922 initWithContentRect:frame | 5922 initWithContentRect:frame |
5923 styleMask:(flStyle | NSTexturedBackgroundWindowMask) | 5923 styleMask:(flStyle | NSTexturedBackgroundWindowMask) |
5924 backing:NSBackingStoreBuffered | 5924 backing:NSBackingStoreBuffered |
5925 defer:false]; | 5925 defer:false]; |
5926 | 5926 |
5927 [window setPreferredBackingLocation:NSWindowBackingLocationVideoMemory]; | |
5927 [window setTitle:[ NSString stringWithUTF8String:title ]]; | 5928 [window setTitle:[ NSString stringWithUTF8String:title ]]; |
5928 | 5929 |
5929 DWView *view = [[DWView alloc] init]; | 5930 DWView *view = [[DWView alloc] init]; |
5930 | 5931 |
5931 [window setContentView:view]; | 5932 [window setContentView:view]; |