Re: [FlashCoders] AS3 TextFields with filters - game performance?
Hi jon, Unfortunately there is no way we can use non-embedded fonts. It's a game after all, with much attention paid on graphics, and we don't want to have it stuffed with Arial or Times New Roman text. :) Do you believe there will be a erforamce issue with embedded fonts? Do you have any real life example for a game you have developed or seen? Thanks, Dimitrios - Original Message - From: Jon Bradley [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, September 14, 2007 3:09 PM Subject: Re: [FlashCoders] AS3 TextFields with filters - game performance? On Sep 13, 2007, at 9:52 AM, Dimitrios Bendilas wrote: My major concern is performance, because of the use of filters. By the way, I want to use the filters so that I won't have to make a new Raster Font Engine in Flash (I've already done one for AS2.0) First thought for performance considerations - don't use embedded fonts. That's a performance hit right there. Flash uses the native system rendering to get the curve information for non-embedded fonts, rather than rendering it itself - that comes with it's own set of problems of course. good luck. jon ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] AS3 TextFields with filters - game performance?
you'll only get a performance hit if the textfields are updating frequently. As soon as you apply a filter, the image is converted to a bitmap anyhoo (I believe). If your fields rarely change, it shouldn't be an issue. J EECOLOR wrote: I do not know what the performance inpact is of TextFields with filters. If the performance it too great you could take a snapshot of the text using a BitmapData instance. Then draw that BitmapData to a Shape or Bitmap and apply the filters there. As I said, I dont know about the difference in performance, but you could try it :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] AS3 TextFields with filters - game performance?
On Sep 13, 2007, at 9:52 AM, Dimitrios Bendilas wrote: My major concern is performance, because of the use of filters. By the way, I want to use the filters so that I won't have to make a new Raster Font Engine in Flash (I've already done one for AS2.0) First thought for performance considerations - don't use embedded fonts. That's a performance hit right there. Flash uses the native system rendering to get the curve information for non-embedded fonts, rather than rendering it itself - that comes with it's own set of problems of course. good luck. jon ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] AS3 TextFields with filters - game performance?
Hi James and Erik, I too was thinking that since a textfield will use cacheAsBitmap whenever filters are applied, there will be no performance issues. They won't change often, as James says. I think I'll go with it and there will be no problem. It just sounded too good to be true :) Thanks for your replies, Dimitrios - Original Message - From: James Marsden [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, September 14, 2007 1:22 PM Subject: Re: [FlashCoders] AS3 TextFields with filters - game performance? you'll only get a performance hit if the textfields are updating frequently. As soon as you apply a filter, the image is converted to a bitmap anyhoo (I believe). If your fields rarely change, it shouldn't be an issue. J EECOLOR wrote: I do not know what the performance inpact is of TextFields with filters. If the performance it too great you could take a snapshot of the text using a BitmapData instance. Then draw that BitmapData to a Shape or Bitmap and apply the filters there. As I said, I dont know about the difference in performance, but you could try it :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[FlashCoders] AS3 TextFields with filters - game performance?
Hello, I was wondering if any of you have any feedback to share concerning the extensive use of textfields with filters in games made with Flash 9 and ActionScript 3. We are developing a desktop casual game, let's say of the scale of Diner Dash (http://www.playfirst.com/game/dinerdashfloonthego). I am building a new Game Framework in AS3, Flash 9 and I was thinking of using the native TextField objects for displaying text of all kind. I want to use textfields with embeded fonts and various styles like Glow and DropShadow at will. The game will have text displayed on game panels, score, animated score, game messages and everything a middle-scale game contains. My major concern is performance, because of the use of filters. By the way, I want to use the filters so that I won't have to make a new Raster Font Engine in Flash (I've already done one for AS2.0) Any insight would be great. Thanks, Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] AS3 TextFields with filters - game performance?
I do not know what the performance inpact is of TextFields with filters. If the performance it too great you could take a snapshot of the text using a BitmapData instance. Then draw that BitmapData to a Shape or Bitmap and apply the filters there. As I said, I dont know about the difference in performance, but you could try it :) Greetz Erik On 9/13/07, Dimitrios Bendilas [EMAIL PROTECTED] wrote: Hello, I was wondering if any of you have any feedback to share concerning the extensive use of textfields with filters in games made with Flash 9 and ActionScript 3. We are developing a desktop casual game, let's say of the scale of Diner Dash (http://www.playfirst.com/game/dinerdashfloonthego). I am building a new Game Framework in AS3, Flash 9 and I was thinking of using the native TextField objects for displaying text of all kind. I want to use textfields with embeded fonts and various styles like Glow and DropShadow at will. The game will have text displayed on game panels, score, animated score, game messages and everything a middle-scale game contains. My major concern is performance, because of the use of filters. By the way, I want to use the filters so that I won't have to make a new Raster Font Engine in Flash (I've already done one for AS2.0) Any insight would be great. Thanks, Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com