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 S7ARBVCK · May 26, 2015 at 08:28 AM · renderingrendertexturetimescalethreadingwhile-loop

Stopping ANYTHING from running...?

Hi,

I've written a system which renders stereo equirectangular images to a very high quality from Unity projects.

Each frame takes a very long time to render (around 24 minutes at 4k). This is fine, as it's an off-line system. The issue is, when I plug this into a pre-existing Unity project, it seems that the project still tries to update at faster than 1 frame at a time. As such, when I'm attempting to render a sequence of these captures, I don't get 'one per frame' - I get sizable jumps between frames which isn't what I wanted.

The system runs in 'LateUpdate' and sets time.timescale to zero before the process begins, and resets it to 1 post the process. This still isn't working.

All I can think is that this is some kind of 'frame rate correction' thing in Unity. I've looked at the 'target framerate' setting, but this only supports integers, so it seems I won't be able to set it to 'one frame every 25 minutes' :-P

Anyone have any ideas? The system runs using multiple 'while' loops, so I expected that to stall all progress, but that's clearly not the case. Unfortunately I cannot see any other way to achieve what I'm trying to, which is a little irritating as I need to achieve this for work.

Any help much appreciated!

Cheers,

SB

Comment
Add comment · Show 3
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 Fornoreason1000 · May 26, 2015 at 08:51 AM 0
Share

would System.Threading.Sleep(25*50*1000); be a solution? this will Halt EVERYTHING on that Thread though. unless you start your processing on a another thread(not sure how unity will respond to this, so use with caution), but its a really painful work around.

avatar image S7ARBVCK · May 26, 2015 at 08:57 AM 0
Share

I will give it a try, but I don't think it will. I still need the render thread to run, as well as whatever thread my rendering process is using (if that stops, the project just pauses for 25 $$anonymous$$utes, producing nothing! :) ).

I'll have a play around with it... :)

avatar image S7ARBVCK · May 26, 2015 at 11:32 AM 0
Share

Nope - doesn't work. Would need to run the offline renderer on a different thread, as well as the renderthread, but completely pause the main thread. Won't work, unfortunately... :(

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

RenderTexture lacks quality , Trees have a grey outline against the night sky 0 Answers

CustomRenderTexture not working 5 Answers

How to read self when CustomRenderTexture dimension is Tex2DArray 0 Answers

Using Graphics.Blit with the same source and destination 1 Answer

How can I set the exact camera render size for render textures? 0 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