Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clack clack sound and distorted font - mac #106

Open
nanjizal opened this issue Nov 4, 2018 · 5 comments
Open

clack clack sound and distorted font - mac #106

nanjizal opened this issue Nov 4, 2018 · 5 comments

Comments

@nanjizal
Copy link

nanjizal commented Nov 4, 2018

This text should say 'hello world'
rectpack2demo
This was the code I was running.
https://gist.github.com/nanjizal/40a7f42a4243263bb261f80b984586f6
On mac c++ with latest Kha it works fine no noise and text works, and on Html5 the same, but with this Krom it fails, making a really horrible clack, clack clack.
Not yet built latest Krom so leaving this issue as certainly on mac ( 10.12.6 ) this Krom is not working against Kha, as per request to leave issue.

@RobDangerous
Copy link
Member

Can you provide a complete project including the font please?

@RobDangerous RobDangerous transferred this issue from Kode/Krom_bin Nov 11, 2018
@RobDangerous
Copy link
Member

Tested an empty project and not getting any sound issues with either old or new Krom. Tested SuperJumpmanLand because it does some font rendering - crashing in old Krom but didn't inspect further because it's working fine in new Krom including font rendering. All of that tested in 10.14, can't test on old macOS versions.
Please retest with latest Kha and Krom (pushing it to Krom_bin in a minute). If issues remain, please provide a complete project. Also, your code tries to open a 4k x 4k window, that doesn't seem reasonable and I don't have the required 8k display to actually test that.

@nanjizal
Copy link
Author

The font now seems to render.

@nanjizal
Copy link
Author

nanjizal commented Nov 12, 2018

One Sound Clack on opening still present:

github files. https://github.com/nanjizal/kromTest

notes:

  • My setup is described fully in the readme.
  • removing assets folder from json and reference in Main can stop the clack
  • but I think that it may retain some memory so may not always disappear on initial rebuild indicating some memory aspect, ie folders still in build, haxe cache ? Not sure.
  • both fonts have been used in many other kha projects without issues ( kode, cpp, web ).
  • either font can produce the clacks it may not even be related to fonts
  • it seems related to assets
  • fonts do not need to be rendered to create the clacks
  • Github indicated that fonts may have mixed line endings, since I had left copies in root that I removed.
  • Occasionally I have seen
    Error: Command failed with error -22

Please let me know if you would like me to create specific tests. The clack is such that I do worry it may hurt the speaker so it certainly puts me off use of Krom.

@RobDangerous
Copy link
Member

Very unlikely that the audio problems have anything to do with your fonts. It's probably a startup timing issue. Anyways, will replace the current solution with a proper multithreaded implementation using Kha's worker API ASAP. Meanwhile pinging @luboslenco because maybe he wants to have a look at that before I get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants