Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7659023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:16:40+00:00 2026-05-31T13:16:40+00:00

I’m working with another developer on an app. His part is basically a control

  • 0

I’m working with another developer on an app. His part is basically a control panel, developed as a standalone module, and has to be integrated in my main app.

My app has to redraw all the panels and elements in a bitmapData to do some bitmapData.hitTest control (we’re working on a multitouch table, panels are draggable but overlapping has to be avoided).

Until yesterday I was working with a placeholder, that means I was basically drawing a simple shape of the exact dimension of the module he’s working on. Today we tried for the first time to merge all together and the performance are very different. It looks like that the process of redrawing his module instead of my placeholder shape is causing a big perfomance drop.

Is it normal? I thought that the process of drawing a display object inside a bitmapData in terms of performance was related to the dimension of the clip, not to its content.

EDIT: I already fix it with a workaround (basically drawing something like the bounding box of the panel object), but I’m still curious about it 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:16:41+00:00Added an answer on May 31, 2026 at 1:16 pm

    The performance will be in part dictated by the contents of the display object. Depending on the number and complexity of the children being drawn this can vary significantly. Take for example that you could potentially draw 10,000 (arbitrarily large number) of sprites that are 1px by 1px (arbitrarily small number) all stacked on top of one another. Each sprite could contain in it’s drawing code tons of arbitrary vector commands (moveTo, lineTo etc.) to draw, even outside of the visible area, these drawing commands will be executed regardless of the drawing area when the drawing methods are invoked (unless specific code stops them from being called for particular constraints). I don’t believe you should see a significant difference in drawing the display objects to a BitmapData object versus drawing them to the screen though (the only difference I can think of here is writing to RAM/heap space whereas with GPU acceleration it might internally be using the video RAM instead).

    I believe the hitTest itself wouldn’t be affected by the number of children since at that point you are just looking at pixels in A vs pixels in B, so it should as you say, only depend on the area of pixels in A and B.

    Out of curiosity what kind of touch surface are you using and what’s the platform it’s working on (Android?). I’d imagine with a good processor like a Tegra 2 or 3 (or some other multi-core and/or GPU accelerated chip-set) this wouldn’t create such a performance impact that it would be noticeable (though I could be wrong). I’ve been working a bit on a top down shooter game and recently switched from using a simplified hit test method I wrote using the bounding boxes to using BitmapData’s hit test method, testing it locally it doesn’t seem to affect performance negatively, but I don’t have a cable with me to test it on device yet so I’m not sure if it’s going to cause a performance impact when run on the device.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
We're building an app, our first using Rails 3, and we're having to build
I am writing an app with both english and french support. The app requests

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.