Runtime asset loading - best practice

Hello,
I'm creating my first mobile air app, to start with it's going to be on ios then I hope to launch on Android and other platforms. I'm wondering is it a good idea to load my bitmap assets during runtime as and when I need them or is it advised to load them all at once upfront and store in memory?
I guess obviously it's going to depend on how many, how big, whether items are reused etc but would be great to get an overview of other peoples general approach.
Thanks is advance!

If your object pooling (creating assets up from before game play), I don't think there is any performance gain from embedding or loading a bitmap from an external source, with the exception of file size if your loading tons of bitmaps and dont want to package them with the application. I could be wrong though!!!
In my opinion, once you create a new bitmap instance, and its on the display list or ready to be used, it shouldn't matter how you had retrieved it..( i think)
Depending on what your doing, you may want to load your bitmaps first to store in memory (create a pool)...  if they are going to be used soon enough that is.
for example if you have a mario brothers type game with character and recyclable enemy's,coins,terrain pieces... I would recommend to create them all at the start of the level. You don't want to be creating new...() instances during game play, but do you want EVERYTHING in the app created up front? most likely not.
My personal "technique" is to pool all my game objects up front. If the user goes into the game menu, i am often creating new instances/bitmaps at that time, then calling dispose() and setting things to null when the leave the menu to attempt to save memory.
Message was edited by: boat5 // spelling

Similar Messages

  • Bean load best practice

    I am not new to Java, but up until now have been a programmer. I am now getting more into design and architecture and have a question about best practice. This question arises from a UML class I was taking. But in the class we stayed within the UML and did not get into implementation.
    My Question
    When creating classes and designing how they interact, what is the best practice for implementing associative relationships. For example, if I were modeling a Barn that contained Animals, I would create a Barn bean and an Animal bean. Since the Barn contained Animals I could create the code like this:
    public class Barn {
    String color;
    Collection animals;
    void setColor(String newcolor);
    String getColor( );
    void setAnimals(Collection newanimals);
    Collection getAnimals( );
    public class Animals{
    String name;
    void setName(String newname);
    String getName( );
    }The Collection within the Barn bean would be made up of Animal beans.
    This seems fairly straight forward. However, what if I loaded the bean from a database? When building the bean, do I also find all animals and build the Animal beans and create the Collection to store within the Barn object?
    Or
    Do I omit the animal Collection from my Barn bean and only populate the Collection at runtime, when someone calls the getAnimals method?
    I am confident that the latter is the better design for performance and synchonization issues. But I wanted to get other opinions.
    Do I need to read up more on object design?
    Thanks,
    Lonnie

    And lazy initialization. Basically, unless the data is needed. Don't load it.

  • Loader Best Practice Question

    The documentation is not very clear on what to do with
    regards to releasing memory etc.
    Typically, I'm loading an image and assigning the image to an
    <mx:image>. Do I then need to dispose/unload the loader? If
    someone would be kind enough to either explain this or provide a
    good code example (that implement best practice) I'd appreciate it.
    Thanks.

    There has been some consternation about this. Check this
    thread for instance:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=587&threadid =1179158

  • Flat File load best practice

    Hi,
    I'm looking for a Flat File best practice for data loading.
    The need is to load a flat fle data into BI 7. The flat file structure has been standardized, but contains 4 slightly different flavors of data. Thus, some fields may be empty while others are mandatory. The idea is to have separate cubes at the end of the data flow.
    Onto the loading of said file:
    Is it best to load all data flavors into 1 PSA and then separate into 4 specific DSOs based on data type?
    Or should data be separated into separate file loads as early as PSA? So, have 4 DSources/PSAs and have separate flows from there-on up to cube?
    I guess pros/cons may come down to where the maintenance falls: separate files vs separate PSA/DSOs...??
    Appreciate any suggestions/advice.
    Thanks,
    Gregg

    I'm not sure if there is any best practise for this scenario (Or may be there is one). As this is more data related to a specific customer needs. But if I were you, I would handle one file into PSA and source the data according to its respective ODS. As that would give me more flexibility within BI to manipulate the data as needed without having to involve business for 4 different files (chances are that they will get them wrong  - splitting the files). So in case of any issue, your trouble shooting would start from PSA rather than going thru the file (very painful and frustating) to see which records in the file screwed up the report. I'm more comfortable handling BI objects rather than data files - coz you know where exactly you have look.

  • How to load best practices data into CRM4.0 installation

    Hi,
      We have successfully installed CRM4.0 on a lab system and now would like to install the CRM best practice data into it.
      If I refer to the CRM BP help site http://help.sap.com/bp_crmv340/CRM_DE/index.htm,
    It looks like I need to install at least the following In order to run it properly.
    C73: CRM Essential Information 
    B01: CRM Generation 
    C71: CRM Connectivity 
    B09: CRM Replication 
    C10: CRM Master Data 
    B08: CRM Cross-Topic Functions
    I am not sure where to start and where to end. At the minimum level I need the CRM Sales to start with.
    Do we have just one installation CDs or a number of those, Also are those available in the download area of the service.sap.com?
    Appreciate the response.

    <b>Ofcourse</b> you need to install Best Practices Configuration, or do your own config.
    Simply installing CRM 4.0 from the distibutiond CD\DVD will get you a plain vanilla CRM system with no configuration and obviously no data.  The Best Practices guide you trhough the process of configuring CRM, and even has automated some tasks.  If you use some of the CATT processes of the Best Practices you can even populate data in your new system (BP data, or replace the input files with your own data)
    In 12 years of SAP consulting, I have NEVER come across a situation whereby you simply install SAP from the distribution media, and can start using it without ANY configuration.
    My advise is to work throught the base configuration modules first, either by importing the BP config/data or following the manual instruction to create the config/data yourself.  Next, look at what your usage of CRM is going to be, for example Internet Sales, Service Management, et cetera, and then install the config  for this/these modules.

  • Runtime image storage best practice ?

    Hello,
    I have a question regarding the best place to store images that will be loaded at runtime. I understand the concept of having an assets folder within the project and keeping certain images as a part of the project itself, but what about storing images that are dynamic in that they not available at authoring, but are still loaded at runtime.
    The specific implementation is that I have an application that is configured by the user, and I want them to be able to assign their own images for icons on buttons (while still assigning default icon in case the image they've assigned is not found or is not compliant to the size requirements, etc). So where would be the best place to store images like this. There are a couple of other places in my project where I'll allow the user to place their own logos (such as the a control bar area etc) or other graphics withing the context of the UI so the question is not specific to buttons and icons.
    I hope my question makes sense, but I can be more specific if need be. Thanks in advance for your time.

    You could use resource bundling mechanism for your Idea, depends on how many users will you have? because this approach requires to have compiled resource modules loaded at runtime, so for each custom set of stuff for one of your users you should invoke mxmlc compiler to build it's own custom resource module. Which you can load at runtime and overlap all same named resources already used in the application.
    And all you have to worry about that your resources named matched and resource bundle names must be equal too.
    If you are interested, dig into ResourceManager class and resource bundling mechanism.
    If you feel this message answers your question or helps, please mark it respectively

  • Data Load Best Practice.

    Hi,
    I needed to know what is the best way to load the data from a source. Is the SQL load the best way or using data files better? What are the inherent advantages and disadvantages of the two processes?
    Thanks for any help.

    I have faced a scenario that explaining here
    I had an ASO cube and data is being load from txt file daily basis and data was huge. There is some problem in data file as well as Master file (file that is being used for dimension building).
    Data and master file has some special character like ‘ , : ~ ` # $ % blank spaces and tab spaces, even ETL process cannot remove these things because this is coming within a data.
    Sometimes any comment or database error were also present in data file.
    I faced problem with making rule file with different delimiter, most of the time I find same character within data that is used as a delimiter. So its increases no of data field and Essbase give error.
    So I have used sql table a for data load .a Launch table is created and data is populated in this table. All error are removed here before using data load into Essbase
    This was my scenario (this case I find SQL load the second one is better)
    Thanks
    Dhanjit G.

  • Data Load -- Best Practices Analytics 9.0.1

    We are currently implementing Essbase I would be interested in feedback concerning data load practices. <BR><BR>We have a front end system which delivers live operational type data in a sql database. Currently, I use Access to run queries against the data to load into Enterprise, but I would like to move to an automated, daily load for Essbase. At this point in Essbase, I have several load rules that I apply to Excel files which were exported from Access (not a good solution). I would assume that a better answer would be a SQL load, but I wonder how others typically go about loading information. What about loading financial data consolidated in another system (Enterprise)?<BR><BR>Thanks for any feedback,<BR><BR>Chris

    Wanted to give an update of my progress today.
    I again began with a clean installation of 9.0.0.  Brought up the CF administrator and completed the installation.  From there, I went directly to installing the 9.0.1 update and the 9.0.1 hotfix.  To my amazement, the cf administrator came up with an issue. But . . .
    I then went into the administrator to install my 'customizations' (i.e. my datasources, my SMTP mail server, my custom tags, etc).  Truly nothing unusual.  Almost sad to say - vanilla.  I then shut down the service as recommended to have some of the changes 'take effect'.  Boom, the cf administrator no longer appears but gives me the blank screen and the same error messages I have listed in my first note.  So again, it must be "something either I turned on/off incorrectly, but don't even know where to look".
    Would this be considered a bug?
    Libby H

  • Help - Database Growth and loading best practice

    Dear all,
    I'm using NW 7.1
    my data are consuming lots of space. I notice my data are grow at 20Gb per 2 month.
    I wonder why the growth is so fast.
    I using process chain to load my data and I always delete my data before full update my cube.
    I kept only 1 week worth of data in my psa.
    I do upload all my master data daily. ( full and delta upload )
    Please advice
    Regards,
    -Dedys

    Hi,
    I have open the table space and here things that show at the table spaces
    PSAPSR3     140.000,00     10.018,13     93
    PSAPSR3700     21.600,00     1.421,81             93
    PSAPSR3DB     5.000,00       1.639,81             67
    PSAPSR3USR     20,00             19,31             3
    PSAPTEMP     1.000,00       998,00             0
    PSAPUNDO     9.020,00       8.624,94             4
    SYSAUX             320,00             55,25             83
    SYSTEM             560,00             7,50                     99
    the one that always full is the PSAPSR3
    what kind of data that is in the PSAPSR3 category ?
    please advice

  • SAP Best Practice!!!

    Hi All
    Please let me know if anybody of you have loaded best practice? i want to load Best practice for a particular country.
    require steps and things needs to be taken care.
    Regrds
    Yogesh

    Link: http://help.sap.com/
    Path: SAP Best Practices --> Baseline Packages --> Based on SAP ECC 5.00 --> Select Country: for eg, Localized for India --> Technical Information --> Building Blocks --> Select Country for eg, India --> List of Basic Configuration & scenarios will be listed.
    Select the required basic configuration / scenario. These will consist of overview, configuration guide, business process, master data &so on ...........
    Regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • Best Practice for Acquisition of Utility Plant Assets from another utility

    My company is located in the United States and will be taking on an initiative of purchasing the Utility Plant assets from another company.  We are governed by Federal Energy Regulatory Commission (FERC) Accounting Standards.  In the guidance for the accounting where one utility purchases the assets of another utility, it states that the purchasing company must account for the Utility Plant Assets in FERC Account 102 at a net book value until FERC approval is received on the sale of the other utility.  Depreciation must be calculated based on the Gross Book Value and applied to this same FERC Account.  What must happen in order to track the assets is that the asset's APC Value and the Depreciation Value must transfer from the utility selling the Plant Assets balance sheet to the utility purchasing the Plant Assets balance sheet respectively.
    As an example:
    Utility ABC is selling their plant assets to Utility XYZ.  The NBV of the plant assets is $60,000,000.  It is broken down to Debit $80,000,000 for the APC Value (in FERC account 101 on Utility ABC's balance sheet) and credit $20,000,000 associated to Depreciation Value (in FERC account 108 on Utility ABC's balance sheet).  When the sale is pending FERC approval the NBV is accounted for on Utility XYZ's balance sheet in FERC account 102.  This amount will be processed to the selling Utility on a PO for the purchase.
    I have configured the Fixed Asset module of SAP to account for the APC Value and the Depreciation Value in separate sub accounts of FERC account 102, that are se-up as reconciliation accounts on the G/L, in the account assignment of the respective asset classes.  we track our assets based on asset class that pertain to the FERC Primary Plant Accounts.
    I am trying to load the assets to the Fixed Asset module having the APC Value and the Depreciation Value reported respectively.  If the NBV amount is processed on the PO, what would be the best practice to load the  APC Value and Depreciation Value to the respective assets?
    My first thought would be to process the PO for the NBV of the assets against a generic FERC Account 102, that is not set-up as a reconciliation account.  I would then process an asset transaction using t-code ABSO with transaction type 158 and use the generic FERC account 102 as the Offsetting Account in the entry and using Document Type AA.
    I would like to follow best practice in this scenario.
    You help on this subject would be greatly appreciated.
    Wayne
    Edited by: Wayne Rochon on Mar 31, 2011 9:19 PM

    Thank you very much for your response. 
    I hope I can provide some clarity on how the accounting needs to be handle per FERC  Regulations.  The G/L balance on the utility that is selling the assets will be in the following accounts (standard accounts across all FERC Regulated Utilities):
    101 - Acquisition Value for the assets
    108 - Accumulated Depreciation Value for the assets
    For an example, there is Debit $60,000,000 in FERC Account 101 and a credit $30,000,000 in FERC Account 108.  When the purchase occurs, the net book value for the asset will be on our G/L in FERC Account 102.  Once we have FERC Approval to acquire the plant assets, we will need to enter the Acquisition Value and associated Accumulated Depreciation onto our G/L to FERC Account 101 and FERC Account 108 respectively with an offset to FERC Account 102.
    The method that I came up with is to purchase the NBV of the assets to a clearing account.  I then set up account assignments that will track the Acquisition Value and respective Accumulated Depreciation for each asset that is being purchased.  I load the respective asset values using t-code AS91 and then make an entry to the 2 respective accounts with the offset against the clearing account using t-code OASV.  Once my company receives FERC approval, I will transfer the asset to new assets that has the account assignments for FERC Account 101 and FERC Account 108 using t-code ABUMN or FB01.

  • Best practices for loading swf's

    Greetings,
    Using CS5 AS2
    I'm creating a website in flash (all the files will be in one directory/folder on SharePoint) and want to make sure that what seems to be working fine is best practice.
    I have an index.swf with many buttons which will take the user to landing pages/content/other swfs. On these different buttons I have the script...
    on (release) {loadMovieNum("name.swf", 0);}                I could also do just {loadMovie("name.swf", 0);} ??
    The movie transitions nicely to name.swf and on this page I have a button that returns the user to the index.swf...
    on (release) {loadMovieNum("index.swf", 0);}   Things move back to index.swf nicely and user can chose to go to another landing page.
    It looks like I'm on the right track, bc nothing is going awry? but want to check. Am I following best practices for moving from one swf to another within a website?
    Thanks for help or confirmation!!

    loading into _level0 (and you should use loadMovieNum, not loadMovie, when loading into a level) undermines some of the benefits of a flash application:  all the assets must load with each display change and the user sees a flash instead of appearing to transition seamlessly from one display to the next.

  • Best Practice for setting bind variable when application loads

    I am using JDeveloper 11.1.2.3.
    When my application loads, the first unbounded page has a table populated by a named query.
    I would like to set the parameter used by the named query when the page loads, to populate the initial data that is displayed.
    What is the best practice for a solution to this issue?

    user6003393 wrote:
    I am using JDeveloper 11.1.2.3.
    When my application loads, the first unbounded page has a table populated by a named query.
    I would like to set the parameter used by the named query when the page loads, to populate the initial data that is displayed.
    What is the best practice for a solution to this issue?Hi,
    You can set the bind variable on VO by overriding prepareSession() method in Application Module check this http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcservices.htm#sthref357
    Setting bind variable on runtime http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcquerying.htm#CHDECJHD
    Zeeshan

  • Best practice for load balancing on SA540

    Are there some 'best practice' guide to configure out load balancing on SA540 .?
    I've got 2 ADSL lines and would like device to auto manage outgoing traffic .. Any idea ?
    Regards

    Hi,
    SA500 today implements flow based round robin load balancing scheme.
    In the case of two WAN link (over ADSL), by default, the traffic should be "roughly" equally distributed.
    So in general, users should have no need to configure anything further for load balancing.
    The SA500 also supports protocol binding (~PBR) over WAN links. This mechanism offers more control on how traffic can flow.
    For example, if you have 1 ADSL with higher throughput than the other ADSL link offers, you can consider to bind bandwidth-hungry app on the WAN link connecting to the higher ADSL link and the less bandwidth-hungary app on the other one. The other traffic can continue to do round robin.  This way you won't saturate the low bandwidth link and give users better application experiences.
    Regards,
    Richard

  • Best practice to Load FX rates to Rate Application in SAP BPC 7.5 NW

    Hi,
    What is the best practice/approach to load FX rates to Rate Application in SAP BPC 7.5 NW? Is it from ECC or BW?
    Thanks,
    Rushi

    I have seen both cases.
    1) Rates coming as a flat file from external system, treasury department, and ECC and BPC both loads in to respective systems in batch.
    2) ECC pushes rate info to BW and data in turn get pushed to BPC along with other scheduled process chains.
    How are rates entering your ECC?
    Shilpa

Maybe you are looking for

  • Customer Exit Variable in cell definition in BEx

    Hi, I have defined a query with a Structure in Row and Key Figures in column. The result of query should look like this: Fiscal/Year Period | Quantity per month | Quantity cumulative 011.2010 (Variable Offset Value -3) | 5 | 5 012.2010 (Variable Offs

  • Applework documents won't open

    Can I still buy Appleworks? I have quite a few documents on my old OSX saved in appleworks. However, I can't open them on my new imac because it doesn't have Appleworks installed - and Pages and Microsoft won't recognise the documents either. Where c

  • AJAX Pagination

    Folks, I have a page where I call an IFRAME to populate my report, a dynamic pl/sql region calling a database package that creates the sql (depending on user selections) and executes the sql and returns the data to a ref cursor result set, the # of r

  • Setting permission on a GUI

    Hi, I have a question that have bothered me for a few day. I'm developing a GUI and would like to set different permissions on the various parts of the GUI. When the GUI is loaded these permissions are read and components who should not be shown will

  • Adding Authentication to Web Service using JDeveloper

    Hi Gurus, I am new to weblogic 10.3 and Jdeveloper 11.1.3. Using Jdeveloper, I imported few packages from database , right clicked and published them as a webservice on a weblogic server. I did not select any WLS policies. The web service is working