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 Jaywalker · Dec 01, 2009 at 08:17 PM · editorwebplayer

Game different in editor/web player and Windows stand alone.

Hey all! This forum has already been a great help and resource. So thanks a lot for that!

I've been searching the forums for an answer, but i cannot fix the problems with the suggestions i found. I apologize if I'm missing an obvious answer (don't want to be that guy...)

I've been working on my game, testing it in the editor. And every week or so i upload a new build to my site.

These both work fine, but when i build a windows stand alone version, my friction is totally different and my fading in textures only jitter faintly (they are currently used for a placeholder tutorial).

the web player version can be seen here: http://www.theoddworks.com/?p=244

the game runs at about 350fps in the editor on my dev pc, and seemingly consistent on different computers within a browser (dont know those fps values).

there are no errors in the Console when playing or building. Except for 1 seemingly random error when i build a web player(pasted below).

I've tried the following:

exporting a unity package with all assets to a new project building in different directories added a space to all the scripts and re-saved them added a splash screen scene so my game was scene 1 instead of 0

Any help is really appreciated!

Thanks!

Vincent Bonefaas www.theoddworks.com

// web player building error:

IOException: Win32 IO returned 1224. Path: C:\Users\Vincent\Desktop\gfs\turboeuh.html System.IO.FileStream..ctor (System.String name, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) System.IO.FileStream..ctor (System.String name, FileMode mode, FileAccess access, FileShare share) (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding) System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding enc) System.IO.File.WriteAllText (System.String path, System.String contents) UnityEditor.PostprocessBuildPlayer.ReplaceText (System.String path, System.String[] input) [0x00000] UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, BuildTarget, BuildOptions) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, BuildTarget, BuildOptions) UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings(Boolean, BuildOptions) UnityEditor.BuildPlayerWindow:OnGUI() System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) UnityEditor.HostView:Invoke(String) UnityEditor.HostView:OnGUI()

Comment
Add comment · Show 2
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 Brian-Kehrer · Dec 01, 2009 at 08:41 PM 0
Share

What is the framerate on the windows machine?

avatar image Jaywalker · Dec 02, 2009 at 07:21 AM 0
Share

On the windows machine in the editor its around 350 fps dont know how to check in in a standalone build

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Jaap Kreijkamp · Dec 01, 2009 at 11:04 PM

Few ideas:

  • Have you checked the windows standalone logfile (Data/output_log.txt)?

  • A possible reason for different behaviour on different platforms is that initialisation order can differ. To give an example it could be that in editor A.Start() is called before B.Start() but in standalone B.Start() is called before A.Start(), so if B uses vars from A that are modified in Start things will differ.

  • Tried to play the webdemo, but got stuck in 5 seconds, how do I jump? I noticed however that the fadeout of the jumping hint did wrap occasionally (so after fading out it started to flicker), especially after switching to full-screen. Are you using an == on floats that can have a slight mismatch or jump over the wanted value if framerate is lower (and Time.deltaTime has higher values?).

Comment
Add comment · Show 1 · Share
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 Jaywalker · Dec 02, 2009 at 07:24 AM 0
Share

Hey! thanks a lot. Im going to try your suggestions today. The controlls for my game are: arrow keys for movement and "z" and "x" for shooting. but I am working on them and they ill probably be different tonight!

cheers

avatar image
0

Answer by Jaywalker · Dec 02, 2009 at 11:57 AM

Ok, i think i found the problem. I used this: Script to check my framerate in the standalone verion, and by doing so i noticed that in the editor the game runs at 30 fps. (the stats say 350+ though, is it locked at 30 in the editor?). so i looked at the standalone version and it was running at 500 fps.

conclusion, i have some framerate dependant stuff in my code..? or to high frame rates is a problem?

Sorry for the inconvenience, but i assumed the stats window showed me the actual fps.

Thanks again!

Comment
Add comment · Show 1 · Share
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 yoyo · Feb 01, 2011 at 08:32 PM 0
Share

The stats window provides an estimate of max frame rate, presumably by measuring the time it takes to Update and render all your components. If each frame takes 0.01 seconds then it will indicate a frame rate of 100 -- even if there's Editor and other activities going on that make the actual frame rate much lower.

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

1 Person is following this question.

avatar image

Related Questions

Problem Loading Asset Bundles on Web Player 1 Answer

Build unity application using a unity application. 1 Answer

How to run the .unity3d files in Unity 2 Answers

Folder for non-editor dll 0 Answers

Is WWW class usable in Android platform? 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