Kode / Krom

Other
98 stars 23 forks source link

clack clack sound and distorted font - mac #106

Open nanjizal opened 6 years ago

nanjizal commented 6 years ago

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 commented 6 years ago

Can you provide a complete project including the font please?

RobDangerous commented 6 years ago

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 commented 6 years ago

The font now seems to render.

nanjizal commented 6 years ago

One Sound Clack on opening still present:

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

notes:

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 commented 6 years ago

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.