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 David St-Hilaire · May 03, 2011 at 02:18 PM · windowswindows-7

Changing windows timer Resolution in unity3d windows builds...

I am trying to change the windows timer resolution for our game on windows. By timer resolution, I mean the resolution such as modified by calls to timeBeginPeriod/timeEndPeriod in windows.

After struggling to do this, I managed to guess that at some point unity does a timeBeginPeriod(1) call, asking the system for a 1ms timer resolution. I tried to revert it by calling a timeEndPeriod but this seems to me a really hacky solution since another timeEndPeriod will surely be done by unity at some later point.

I want to this to have a power efficient application which does not have a resolution smaller than 10ms and restores the system's default resolution (15.6ms) while being inactive. So far, I could set the 10ms resolution by calling a timeBeginPeriod(10) (which surprisingly works even without calling the timeEndPeriod(1) since windows is supposed to take the smaller resolution request in priority). I was not able to revert to the system's 15.6 ms resolution tough.

I know this question is a bit specific, but I believe it could be of interest to developers targeting the windows platform, especially if the partner with Intel's AppUp program which strongly recommend those power saving behaviors.

Thank you very much for your help!

-- David St-Hilaire

Comment
Add comment
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

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

No one has followed this question yet.

Related Questions

When I maximize the Unity editor, it's offset on the screen. (Windows 7) 1 Answer

Unity Hangs on Startup with minimal log (Win 7) 0 Answers

How do I bypass standalone config dialog? 2 Answers

Windows 8 touch support 2 Answers

How to stop 'build' from opening a new window? 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