• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Lordinarius · Apr 10, 2015 at 06:41 PM · shaderbackgroundeffectblur

Changing render time (framerate) of a shader

Hi

Is it possible to adjust update time of a shader? For example i have a blur shader and i just want to update it 5 times in a second.

I want to make a blury background in pause/gameover menu for a mobile game. It is too expensive to use blur effects for mobile platform. So i wanted to render it for one time and use it as a background.

Thanks.

Comment

People who like this

0 Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image equus_ligneus · Apr 10, 2015 at 09:04 PM 0
Share

Does your menu-background change in any way? Because if it does not, you could just render your blurry background once (in a renderer of your choice) and use it as a texture

avatar image Lordinarius · Apr 11, 2015 at 05:33 AM 0
Share

I thought like that but does it make a cpu spike ?

avatar image LEGEND383 · Apr 11, 2015 at 07:09 AM 0
Share

I'm pretty sure @equus_ligneus was suggesting that, if you're using a static background, to arrange the objects in a 3d package and render them out to an image file. This could even be done in unity editor, just apply the blur, take a screenshot of the game view and then crop it in an image editor of your choice. Then you remove the blur, and put the image behind your menu.

avatar image Lordinarius · Apr 11, 2015 at 07:13 AM 0
Share

It is static but could change. Every gameover state will be different because player will be in different position. So i should generate this texture in play mode with no cpu spike.

avatar image equus_ligneus · Apr 11, 2015 at 12:32 PM 0
Share

Well, then I don't think you'll get past RenderTextures... And cpu-spikes for that matter (depends on your screen resolution in contrast to your cpu speed). Either do your blurring as a post processing effect or render your current view to an image, apply the blur and use it as an image in your gui. Because as far as I know, setting the frame rate for one specific shader is not possible.

Show more comments

0 Replies

  • Sort: 

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to blur my background 2 Answers

Unity 5.6 splash screen tool: Blurry background image 0 Answers

Why is shader/canvas background black?,When I run my shader code in unity the canvas has a black background? 0 Answers

motion blur without unity pro 1 Answer

How to make a blur/grain effect kinda 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges