Krom
Krom copied to clipboard
clack clack sound and distorted font - mac
This text should say 'hello world'
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.
Can you provide a complete project including the font please?
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.
The font now seems to render.
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.
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.