Tiled Layer grinds everything to a halt

I have a tiled layer which is meant to act as an overlay to a game and represents the screen being filled up with scungy "water"..
I calculate the number of rows and columns I need and create the tiled layer without assigning any tiles (i.e) they are empty.
The tile is a single image 5 x 5 pixels. It is a semitranslucent png-24 file
As the game progresses I gradually fill up a row in the TL with the tile index 1 using a loop and setCell().
Then at the end of a stage, it comes down again, as though draining using a loop and setCell and a tile index of 0 (sfx to be applied later).
The problem is that as the screen progressively fills up, the game gets slower and s l o w e rrrrrrrr, then miraculously speeds up again once the tiles are emptied.
As an experiment I tried it at different levels in the layerManager stack and the same thing happened, even when it was behind the background layer.(and thus presumably not rendered) I also tried it with the exact same code except to change the fill it up code to use a tile index of 0 and the speed was not degraded.
Do you have any solutions as I need to keep the effect as I have lots of scummy things blobbing about in the "water".
Your help would be most appreciated
Kathydb

How did you upgrade? Did you clean-install or install on top of your previous system? DId you install anything else with the upgrade?
Do you have any older Aperture plug-ins, that might not be compatible with Mt. Lion and cause problems?
Do you see the slowness with any Aperture library or only with your main library?
Try two basic tests to narrow down the problem:
Launch Aperture while you are holding the shift-key down. This will defer the generation of previews. Is Aperture now more responsive?
Launch Aperture on a new, empty library and import a few image files. Does Aperture work well on a new library?
If the first test will make Aperture responsive again, you may have imported bad media files that need to be removed from your Aperture library, or you have missing or incompatible video codecs installed.
If the second test will make Aperture responsive again, but the first not, your Aperture library may need repairing, see: Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual
If none of the above will work, lauch the Console app from Applications > Utilities.
Check in the Console window, if there are error messages, when Aperture appears to be hanging.
Post them here.
Regards
Léonie

Similar Messages

  • Tiled layer problem in J2me Game

    hi,
    i made a complete map (2d matrix) of a 2d game.
    Then i made a TileLayer class to add this in game.
    then i made another sprite of my game character.
    now i want to check the collision of that sprite with the hurdels which i made in the TileLayer. is their any other way.
    one way is to make saperate sprites of all those hurdles. i don't want this.
    i want my game character to detect all the hurdels in the Tiled layer class.
    hope i have cleared my point.
    please help me
    thanks

    now i want to check the collision of that sprite
    with the hurdels which i made in the TileLayer.Aaqib
    Have you read the javadoc for Sprite?
    public final boolean collidesWith(TiledLayer t,
                                      boolean pixelLevel)Checks for a collision between this Sprite and the specified TiledLayer. If pixel-level detection is used, a collision is detected only if opaque pixels collide. That is, an opaque pixel in the Sprite would have to collide with an opaque pixel in TiledLayer for a collision to be detected. Only those pixels within the Sprite's collision rectangle are checked.
    If pixel-level detection is not used, this method simply checks if the Sprite's collision rectangle intersects with a non-empty cell in the TiledLayer.
    Any transform applied to the Sprite is automatically accounted for.
    The Sprite and the TiledLayer must both be visible in order for a collision to be detected.
    i don think that this question is soo hard.Neither do I, but you have to learn to read the available documentation :-) The javadoc is your friend.
    If you don't have a local copy, it is available on
    http://java.sun.com/javame/reference/apis/jsr118/
    Regards, Darryl
    edit You may need to add one more TiledLayer so that only the hurdles are on the TiledLayer you use for detecting collisions.
    Message was edited by:
    Darryl.Burke

  • Tiled Layer - NullPointerException

    Hi, getting a small problem when initialising a tiled layer object. When I initialise the TiledLayer object "backgroundLayer", it throws a NullPointerException, and the Catch "System.out.println("")" is also being displayed, stating it cannot find the image. The image itself is in the "src" folder for the game, it's a 31 by 61 PNG file named "levelOne.png". I can't figure out why the image isn't being displayed, please help lol.
    Thanks.
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    import javax.microedition.lcdui.Image.*;
    import javax.microedition.media.*;
    import javax.microedition.io.*;
    import javax.bluetooth.*;
    import java.util.*;
    import java.io.*;
    public class Engine extends GameCanvas implements Runnable {
        public Thread thread;
        public LayerManager layerManager;
        public TiledLayer backgroundLayer;
        public Image backgroundImage;
        boolean isRunning;
        public Engine (AwakeMIDlet m) {
            super(true);
            try {
                backgroundImage = Image.createImage("/levelOne.png");
            catch (IOException ioe) {
                System.out.println("Image unable to be displayed.");
            layerManager = new LayerManager();
            backgroundLayer = new TiledLayer(5, 5, backgroundImage, 31, 31);
            isRunning = true;
            int[] cells = {
                1, 2, 2, 2, 1, // Top
                1, 0, 0, 0, 1,
                1, 0, 0, 0, 1,
                1, 0, 0, 0, 1,
                2, 1, 1, 1, 2
            for (int i = 0; i < cells.length; i++) {
                int column = i % 5;
                int row = (i - column)/5;
                backgroundLayer.setCell(column, row, cells);
    backgroundLayer.setPosition(0, 0);
    layerManager.append(backgroundLayer);
    public void go() {
    thread = new Thread(this);
    thread.start();
    public void run() {
    Graphics g = getGraphics();
    while(isRunning = true) {

    If you're using NetBeans, the path of the image file should be relative to the project root. If as you say the image file is in the "src" folder that should bebackgroundImage = Image.createImage("/src/levelOne.png");Other IDEs may treat the path differently.
    db

  • Rendering a large (Tiled) layer into the camera roll

    Hi,
    Wonder if anyone can help? I've got a very large tiled layer that I'm trying to take a screen shot of. Unfortunately it is a little too large for the normal method (renderInContext, UIGraphicsGetImageFromCurrentImageContext, UIImageWriteToSavedPhotosAlbum etc.) and the app runs out of memory.
    Does anyone know of a way to achieve this? I was considering breaking the job up into multiple 'captures' - but I can't find a way to render anything but the entire layer - it would have been handy if renderInContext took a rectangle as a parameter!
    Thanks for you assistance.
    Craig

    Hi,
    Try to drag your videos to the iPhone photos folder in iPhoto. Should work.
    If it doesn't help, you can always upload your files to dropbox or something similar and later download them on your iPhone.
    Hope it helps.

  • My machine grinds to a near halt when time machine is backing up

    My machine grinds to a near halt when time machine is backing up. Is there any way to prevent this?

    How much data is it backing-up? Are you making frequent changes to big files? Are you using any 3rd-party apps that store their data in one big file (like a database)? Entourage is one that works that way.
    If you're not sure what's getting backed-up, you might want to download the TimeTracker app, from www.charlessoft.com.
    It shows most of the files saved by TM for each backup (excluding some hidden/system files, etc.). Take a look at it for one of the problem backups, to see what's going on.
    If you see something you can't identify, post the name(s) here and we'll see if anybody is familiar with them.

  • The video or animated game grinds to a frozen halt

    a video from u tube grinds to a halt, a complex game grinds to a halt. there is a grinding of the physical machinery of the computer on the left as you are facing the screen around the exhaust port for the heat dispersal. then i try any thing, say click on file or edit or view etc. and it takes forever to get any of them to open,they too have ground to sub snail speed.
    this is a five year old computer, using Windows xp, pentium 4. it seems to be overtaxed by running complexities such as videos, or complex computer games. ? i am largly computer illiterate as the last two computer courses i took were 15 or so years ago..... although i did some minor trouble shooting for some other students....i think its firefox 3.6.13 ???

    Hello again, I can see that your Mac is running last year's 2011 generation Macbook Air, am I correct? If older, then I suppose that it is because likely of the new operating system, with new software added in, I think it is stressing the RAM a lot. Also, likely is because your using a lot of your hard drive's storage. Other than that, you can go and configure your mac or get a new one. These are suggestions I could offer, on the other hand I think you will have to stop updating your operating system. Not software updates, but operating system. Means you maybe sticking to Mountain Lion for "a while". Sorry I couldn't be much of a help. But yes, those are old specs and you may be stressing your computer hardware.
    Another option is to get expensive accessories like an external hard drive and buying more RAM. Your graphics card should be fine since your using an Air likely just for work and internet browsing.

  • Aperture grinds everything to a hault.

    Just upgraded to mountain lion and install was OK but know when I use Aperure it runs very slowly, getting slower and I end up needing a reboot.
    This effects all operations, including safari, mail etc.  Aperture is always saying it is processing.  I have checked and verified everything in the disk Utility.  If I watch the activity monitor then the free memory slowly drops down to about 5mb, and inactive goes up to about 2 gig.  there is 4 gig, in the system.  In terminal there are no page swaps, if I purge the drive the free memory goes back up to about 2 gig but then over 10 minutes, with the software open but not being used, the free memory slowly drops down again.  I have reprocessed all originals and made sure everything is the latest versions.
    Mac 10.8.4 4 gig ram, 2.2 i7 and 1 gig video ram
    Aperture 3.4.5 27,000 images
    What would cause this ?
    Thanks

    How did you upgrade? Did you clean-install or install on top of your previous system? DId you install anything else with the upgrade?
    Do you have any older Aperture plug-ins, that might not be compatible with Mt. Lion and cause problems?
    Do you see the slowness with any Aperture library or only with your main library?
    Try two basic tests to narrow down the problem:
    Launch Aperture while you are holding the shift-key down. This will defer the generation of previews. Is Aperture now more responsive?
    Launch Aperture on a new, empty library and import a few image files. Does Aperture work well on a new library?
    If the first test will make Aperture responsive again, you may have imported bad media files that need to be removed from your Aperture library, or you have missing or incompatible video codecs installed.
    If the second test will make Aperture responsive again, but the first not, your Aperture library may need repairing, see: Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual
    If none of the above will work, lauch the Console app from Applications > Utilities.
    Check in the Console window, if there are error messages, when Aperture appears to be hanging.
    Post them here.
    Regards
    Léonie

  • Tiled Layer question

    Hi guys
    i've used the TiledLayer class to create a large background with a number of objects on it, i also have a sprite which can move across the tiledlayer.
    What i want to know is how can i work out which tile the sprite is on at any given time.
    At the moment i'm trying to get it by dividing the sprite's X position by the tile width to get the cell column and the sprite's Y position by the tile height to get the cell row. The problem is that it's not very accurate so is there a better way of doing it.
    thanks for any help

    If you're using NetBeans, the path of the image file should be relative to the project root. If as you say the image file is in the "src" folder that should bebackgroundImage = Image.createImage("/src/levelOne.png");Other IDEs may treat the path differently.
    db

  • Typing anything into Console's filter field grinds it to a halt

    after the leopard install, typing in console filter terms uses up a massive chunk of cpu, and the response time is agonizingly slow considering my drivespeeds and cpu power. You'd think ripping through a text document would be a fairly efficient process.
    this becomes a serious time-waster when attempting to weed out site-suckers in the access logs
    10.5.2 did not solve this issue

    ok that wasn't exactly the problem but you gave me a clue and I checked the system log only to discover apache wigging out on its own logfile that had artificially grown to 54 meg (which it surely was not) so I purged it and let apache build a new one.
    things are back to normal, and that'll teach me for trying to manipulate the httpd shells while they're interacting with clients.

  • Sparsebundle ate my hard drive

    When I noticed my iDisk showed a sync failure, I turned iDisk sync off and then on again, leaving the computer on all night. When I returned the next morning and tried to save a document, I got a message saying my 300 GB hard drive was full. It had been half full the night before. Sure enough, the Activity Monitor showed that my hard drive had only a few MB left.
    Thanks to Disk Inventory X, I discovered a HUGE file (147 GB) in the following location:
    (login)_idisk.sparsebundle (Macintosh HD/users/(login)/Library/FileSync
    I deleted that, restarted, and got the space back.
    Anyone else have this problem?
    TIA, Bob

    Yes, exactly the same problem here too, and I've not even tried Time Machine. Since I had gone for over two weeks prior to upgrading to Leopard without iDisk working on my iMac (fine on the laptop), I was at first thrilled to have it working again. . . until discovering that it is eating the entire drive, and grinding everything to a halt fairly constantly. (One pathetic response from .Mac help, and after five hours on the phone a promise that I had been escaled, but nothing has come of that. Still can't sync my iPhone!)
    Any solutions yet? This is ridiculous!

  • Sept 2014 is external audio I/O STILL crashing w/ Flash?

    So ever since 'updating' to Mavericks, like many 1000's of people I'm still getting regular semi-random, hard, force-shutdown freezes when using an external audio interface at the same time as Firefox, Safari.....basically any browser. I'm a professional, I have clients, I have private work, it's simply a HUGE pain in the backside. Occasionally a browser will be left on in the background and just kick in and grind everything to a halt or I simply have no choice but to work in a browser for a transcription project. Trying to force quit various processes always seems to point to something Flash related.
    I've searched and searched and found suggestions of various workarounds but nothing that really works for me.  My system is lean and I'm using latest versions of everything alongside top-flight audio hardware from various makers with excellent drivers.
    This has been going on for nearly a year and unless I've missed some kind of solid workround is just....appalling.

    'Unabated' generally meant I was using it and had to leave it briefly or had been using and would return soon. I was under the impression that Flash was required for Youtube etc. Until Mavericks this problem hadn't existed....anyway, though I don' really use Safari due to needing certain Firefox add-ons I had a look at your suggestions then went hunting again in Ffox add-ons and added Flashblock which so far....fingers very crossed, after a few hours of normal use, trying sleeping the Mac and also restarting seeeems (tentative with fingers very crossed) to have prevented any problems.
    So, many thanks whatever happens and fingers crossed it sticks.

  • Latest update killing my laptop!!!

    Anyone else notice this? It is actually painfully slow.
    15" Macbook Pro with 2.33 core2 duo with 256 video ram and 2 gigs of system ram. The hard drive is less than 50% full. Even a reboot doesn't cure the problem.
    It wasn't like this 2 weeks ago. I suspect either the OSX updates or the Aperture update. It seems like that was the tipping point.

    Well it seems that Aperture is grinding everything to a halt when I first fire it up. Every time Aperture starts I see the busy icon spinning (the one at the bottom to the left of the Aperture controls). Clicking on this brings up the "Background Task List" which states the Image manager is processing 5 previews. Once it finishes with the 5 everything flies as it did before but while it's processing this thing grinds to a virtual standstill and the fans spin up to 6000 rpm.
    If I wait until the 5 previews finish, shutdown Aperture and fire it up again it says the same thing "Processing 5 previews" every time.
    Is this normal?
    Seems kind of strange, why wouldn't it just process all of the previews it needs?
    I've never noticed this kind of slowdown before.
    Any ideas?

  • How can I check progress?

    I've just (yesterday) downloaded the trial of Ap3 and I plan to purchase it soon. I just wanted to check that I could import my old iPhoto (about 200GB of photos) library properly first.
    I can now see all of the photos but everything is running really slowly and the program constantly freezes for a few minutes. Down the bottom of the screen it says "Processing…" with a spinning wheel. I'm assuming this is it processing (doing faces and previews and stuff like that?) the 30, 000 photos I just imported. Is there any way to see how far through this is or how much longer it will take?
    Thanks heaps,
    Jacob

    I am not sure, I have tried to import my iPhoto library about 3 times now and it just grinds everything to a halt. I am now just importing some of the more important (to me anyway) albums (just drag and drop onto Aperture) and it has taken almost 3 hours to completely import and process ~1100 photos (almost all in Raw format so they are large files)
    I wish I knew more, but I hope that will be fixed in a future (soon please Apple if you are reading this) update

  • Premier stutters, stop, starts, becomes unresponsive, and grinds to a halt

    ok, i3770 3.5
    24 gig ram 1333 ( 23.2 usable)
    win 7 64x ultimate
    Wacom touch pen interface
    2x Ati Radeon 6870 1gb gddr5 ( usually un-crossfired)
    premier pro 5.5.2
    now, I more than meet the minimum needs for adobe premier, but sometimes, when I am using it, it grinds to a near halt and "becomes unresponsive" between simple actions. I checked online and it said to shut off the gpu setting, which I could not find on my version of adobe premier CS5.5. So, I figure my scratch disk drive is too full. so I free up 50 gig or so by uninstalling some games im not playing. I run my registry cleaner, and I still have the same problem.
    Is it because I de-frag my HDD once a week ? did some of the files get shifted and this is causing major problems in performance ?
    Im not sure if this is a hardware or a configuration problem.
    What I am doing is creating my own cartoon in it. which I am sure , is not what this program is designed for, but I find it much more intuitive to use than flash for some reason. its a comfort / time issue for me.
    http://i114.photobucket.com/albums/n247/Godamuss/detail...
    this picture shows on the left what the key frames look like over view, and the right side has them under closer scrutiny, you can see how the small files for the lip syncing, are .... "zerg-like". the red line is in the same place, for reference.
    Am I trying to make my pc do too much ? have I gone beyond consumer grade ability ?
    https://www.youtube.com/channel/UCqQI1x9bna9xWszc8eO_L_...
    last cartoon link : for reference. low production values, but hey, its a 2 man show with 1 man doing all the computer work.
    any help would be greatly appreciated. thank you.

    Hello again, I can see that your Mac is running last year's 2011 generation Macbook Air, am I correct? If older, then I suppose that it is because likely of the new operating system, with new software added in, I think it is stressing the RAM a lot. Also, likely is because your using a lot of your hard drive's storage. Other than that, you can go and configure your mac or get a new one. These are suggestions I could offer, on the other hand I think you will have to stop updating your operating system. Not software updates, but operating system. Means you maybe sticking to Mountain Lion for "a while". Sorry I couldn't be much of a help. But yes, those are old specs and you may be stressing your computer hardware.
    Another option is to get expensive accessories like an external hard drive and buying more RAM. Your graphics card should be fine since your using an Air likely just for work and internet browsing.

  • PC non-responsive during sync to apple TV (grinds to a halt)

    Unlike a lot of people in this forun, I am happy with my apple tv sync performance.
    However, while the sync process is happening, the windows GUI and the other programs grind to a near-halt for 10 minutes or so. All the windows programs just about unresponsive.
    I would be a lot happier if Apple could make the sync process slower (it could run over a few hours, for all I care), if it would leave my PC in a useable condition. This slow down happens even if I am just adding a few podcasts to the apple tv.
    I have an airport extreme, and the larger Apple Tv model, which is almost full.
    Streaming mode is not an option for me, as I dont want to have the PC on at all times.
    Is there an option I am missing that can make this sync operation run at a lower priority?? The network performance in the task manager indicates a very low level of network activity, with a high level of CPU utilication.
    Any ideas would be appreciated. Thanks!!!
    Thanks,
    Wayne

    Welcome to the  Discussion Forums.
    You don't say anything about your pc, could it simply be underpowered in terms of CPU and RAM, I only sync my photos but when I do, I generally sync to several tv's at once and don't seem to suffer any slowdown.

Maybe you are looking for