Giter VIP home page Giter VIP logo

Comments (9)

jasonrohrer avatar jasonrohrer commented on July 22, 2024

That's not good.

Any more details? Does the game minimize? Is it running in a window? It sounds like vsync is enabled in the window, but then NOT enabled once it becomes minimized, allowing the frame rates to become unchecked.

Can you run it from the terminal? Then it will print frame rates as it runs, so you can check if the above theory is true. What is the fps foreground vs background?

from onelife.

schovi avatar schovi commented on July 22, 2024

Little more investigation and it happens only when game windows is not visible at all (covered beside other app). There is video https://v.usetapes.com/RIvrt3X900
Same problem when minimalized.

And you were right with framerate.

/A/OneLife ▶︎︎ /Applications/OneLife/OneLife.app/Contents/MacOS/OneLife; exit
Local epoch time  = -3600
GMT epoch time  = 0
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/AppExceptions.bundle/Exceptions.plist'
If you're running this from the command line, the working directory is being overridden and set to /Applications/OneLife

Decompressing took 0.001000 seconds
Loaded 657 tagged sprites from sprites folder
Loaded 172 sound IDs from sounds folder
Decompressing took 0.007000 seconds
Loaded 507 animations from animations folder
Finished loading animation bank in 0.351000 sec
Decompressing took 0.005000 seconds
Loaded 523 objects from objects folder
  Auto-generated 282 'used' objects
Finished loading object bank in 0.774000 sec
Decompressing took 0.000000 seconds
Loaded 14 categories from categories folder
Finished loading category bank in 0.983000 sec
Decompressing took 0.001000 seconds
Loaded 740 transitions from transitions folder
Auto-generated 232 transitions based on categories
Auto-modified 47 transitions based generic use transitions and auto-added 0 last use generic transitions (3 objects had generic use transitions defined).
Auto-generated 1191 transitions based on used objects, removing 120 transitions in the process
Frame rate = 47.258981 frames/second
Frame rate = 51.948053 frames/second
Frame rate = 59.417703 frames/second
Frame rate = 59.988000 frames/second
Frame rate = 59.844404 frames/second
Frame rate = 60.132296 frames/second
Frame rate = 60.024005 frames/second
Frame rate = 92.250933 frames/second
Frame rate = 2127.662683 frames/second
Frame rate = 2857.135851 frames/second
Frame rate = 3448.270646 frames/second

from onelife.

jasonrohrer avatar jasonrohrer commented on July 22, 2024

Okay, I see what's happening with vsync here...

I'll implement a work-around for this problem. There's no sense in it running at 3000 fps ever!

from onelife.

jasonrohrer avatar jasonrohrer commented on July 22, 2024

Can you confirm that the FPS goes back to normal after the App becomes visible again?

from onelife.

schovi avatar schovi commented on July 22, 2024

@jasonrohrer it will. You can see it in video where "cpu consumption" changes up and down based on visibility.

from onelife.

jasonrohrer avatar jasonrohrer commented on July 22, 2024

Okay, good. Will fix soon. Thank you!

from onelife.

schovi avatar schovi commented on July 22, 2024

@jasonrohrer hi. just found out Fullscreen doesn't work too. I have 15" Macbook pro with scaling set to 1680x1050 Maybe it is similar issue.

Local epoch time  = -3600
GMT epoch time  = 0
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/AppExceptions.bundle/Exceptions.plist'
If you're running this from the command line, the working directory is being overridden and set to /Applications/OneLife

Couldn't set 1680x1050 GL video mode: Failed to find display resolution: 1680x1050x32
Decompressing took 0.000000 seconds
Loaded 712 tagged sprites from sprites folder
Loaded 199 sound IDs from sounds folder
Decompressing took 0.008000 seconds
Loaded 592 animations from animations folder
Finished loading animation bank in 0.064000 sec
Decompressing took 0.003000 seconds
Loaded 618 objects from objects folder
  Auto-generated 321 'used' objects
Finished loading object bank in 0.194000 sec
Decompressing took 0.000000 seconds
Loaded 19 categories from categories folder
Finished loading category bank in 0.195000 sec
Decompressing took 0.001000 seconds
Frame rate = 153.374245 frames/second
Loaded 868 transitions from transitions folder
Auto-generated 357 transitions based on categories
Auto-modified 134 transitions based generic use transitions and auto-added 0 last use generic transitions (7 objects had generic use transitions defined).
Auto-generated 1485 transitions based on used objects, removing 170 transitions in the process
Frame rate = 317.460260 frames/second
Frame rate = 19999.542247 frames/second
Frame rate = 25000.321869 frames/second
Frame rate = 25000.321869 frames/second
Frame rate = 25000.321869 frames/second

PS: App doesn't show any window at all.

from onelife.

jasonrohrer avatar jasonrohrer commented on July 22, 2024

Yes, a fullscreen fix for mac is coming.

If you're stuck in broken fullscreen, go into the settings folder to fix it. fullscreen.ini

from onelife.

jasonrohrer avatar jasonrohrer commented on July 22, 2024

Closing this as stale, for now.

from onelife.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.