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 4030500
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:28:47+00:00 2026-05-20T11:28:47+00:00

I have a cclayer class with invisible button that is the size of the

  • 0

I have a cclayer class with invisible button that is the size of the iphone 320×480 screen.

I’ve set it to have the visible property so that when the user taps on any part of the screen, it’ll set itself to invisible and set the rest of my ccmenuitems to be visible.

I noticed that when the transparentbutton is ‘visible’ my fps drops to 30. When it toggles to be invisible and brings up the other ‘visible’ ccmenuitems, my fps goes back to 60fps.

Why does my app do this when there is a full screen transparent button and how do i work around this to maintain 60 fps?

  • 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-20T11:28:47+00:00Added an answer on May 20, 2026 at 11:28 am

    Transparent things are costly to render, as it requires calculating the net effect after applying the transparency. Even if the view is full transparent (i.e. visible but alpha = 0), I guess these calculations are carried on. Full screen transparency might affect the performance. Instead of using invisible button try to detect the touch in some other way, if possible.

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

Sidebar

Related Questions

I have a CCLayer class where I create an animated sprite that is the
I have a little app up that has both CCLayer view and UIView. That
Alright lets say I have a cPlayer class that inherits from cOrganism , which
I have a singleton class that I want accessible via a helper method on
I have some sprites that I do not know what class to subclass from.
I have a UIView class that I am using to have a CALayer. This
I have written a custom class that depends significantly on touch dragging/positioning, outside of
So I have a class that returns a CALayer that has an array of
i have a CCLayer class on top of which i am adding another CClayer
I want to set the class tile value by click on the button if

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.