Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
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
Add comment · 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

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

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

Smooth text disappear after erased like in old monitors. 1 Answer

Can this explosion effect be created in Unity 3.5? 1 Answer

shuriken not showing against water shader background 2 Answers


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