Mittagskogel / Sulfurous

MIT License
40 stars 22 forks source link

Primes Lister #84

Closed FintasticMan1 closed 6 years ago

FintasticMan1 commented 6 years ago

I can't use this project i just made, I think it is because lists don't work in your player. I would be very grateful if you could fix it.

https://scratch.mit.edu/projects/167841647/ https://sulfurous.aau.at/#167841647 Mozilla/5.0 (X11; CrOS x86_64 10032.86.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.140 Safari/537.36

htmlgames commented 6 years ago

I'm trying to implement lists on this fork first (it's quite tricky):

https://htmlgames.github.io/htmlgames/differences/UAT/itchy/index.html#167841647

I then can patch to Sulfurous, however they use different zooming styles that I have to work out (once the general list logic is done)

FintasticMan1 commented 6 years ago

I saw that but what is lacking is Turbo Mode

FintasticMan1 commented 6 years ago

I'm trying to make a website just for a test and Sulphurous seems great but either it's missing Turbo Mode or lists Don't get me wrong, I really love what you guys are doing, but these things are just the icing on the cake.

htmlgames commented 6 years ago

Hold down shift and click the flag = turbo mode

Edit: I revisited this, and because lists are using html elements the turbo mode doesn't make much difference. Also as it has to redraw (recreate) the list from scratch all the time, it gets slower as the list gets longer.

Normally this isn't a problem as lists don't grow so fast, thus isn't noticeable.

I think the logic is there, just rendering lists to screen now is the main issue, as this project shows.

I know the Sulfurous team are good with webgl, maybe thats's the route to take here?

htmlgames commented 6 years ago

Hey FintasticMan , I've implemented a turbo mode on the list on the fork - if it's running in turbo mode the list(s) only redraw every second. This is now kicking out ~320 primes a second (compared to turbo mode scratch ~110 per second ).

What do you think of this as a possible turbo mode solution?

FintasticMan1 commented 6 years ago

I am sorry I haven't commented for a while, but I think that is a fine solution. 😄

FRALEXAlexander commented 6 years ago

Lists will work in version 0.94