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

fix: Hung up on slow rendering arts #9899

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Conversation

hassnian
Copy link
Contributor

PR Type

  • Bugfix
  • Feature
  • Refactoring

Context

maybe if it would not be all at once?

added a max of 3 at once

Needs QA check

  • @kodadot/qa-guild please review

Did your issue had any of the "$" label on it?

  • Fill up your DOT address: Payout

Screenshot 📸

  • My fix has changed something on UI;

@hassnian hassnian requested a review from a team as a code owner March 28, 2024 07:14
@hassnian hassnian requested review from preschian and Jarsen136 and removed request for a team March 28, 2024 07:14
@kodabot
Copy link
Collaborator

kodabot commented Mar 28, 2024

SUCCESS @hassnian PR for issue #9719 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

Copy link

netlify bot commented Mar 28, 2024

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit cb48a04
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/660537f707ab750008c390f1
😎 Deploy Preview https://deploy-preview-9899--koda-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -18,6 +18,7 @@ export type MassMintNFT = Omit<ToMintNft, 'priceUSD'> & {
hash: string
sn?: number
entropyRange: EntropyRange
canRender: boolean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any simpler way than this?
Is it possible to render a static image if multiple amounts? Else, render canvas

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm , correct me if I'm wrong , but as far I know we need to render the canvas at least once to be able to upload the metadata.

we don't have access to any static image of that nft variation, unless we have them pre-generated. (iirc that was mentioned as a possibility to speed up our minting process )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm , correct me if I'm wrong , but as far I know we need to render the canvas at least once to be able to upload the metadata.

aahh, I see 👍🏻
let me re-check

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get base64 static image from toMintNft.imageDataPayload?.image. Could you check if it is still laggy if we load multiple base64 images?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checking

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added cb48a04

the break

after 2-3 canvas i does hang up for a couple of secs

i'm running a m1 pro ( better than the average user's computer (I would assume)) and I see my CPU usage going crazy

I can image some user's browser just crashing/ not responding , , lowering the max will make for slower minting process , not sure how do we improve this

overall

I do see a difference , it's hard to see on these videos

30 nfts

canary

even though they rendered faster (no max amount) it's kinda laggy and I see some nfts going blank (there is memory cap or something?)

CleanShot.2024-03-28.at.14.29.06.mp4

this pr

renders slower ,(max of 3 at once) but after that its pretty smooth.

CleanShot.2024-03-28.at.14.28.28.mp4

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renders slower ,(max of 3 at once) but after that its pretty smooth.

nice, is it still faster if we remove "max of 3" stuff?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice if we can get rid of isRendering stuff

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codeclimate bot commented Mar 28, 2024

Code Climate has analyzed commit cb48a04 and detected 0 issues on this pull request.

View more on Code Climate.

@yangwao
Copy link
Member

yangwao commented Mar 28, 2024

first got hooked like over minute on this one

image

but second attempt went ok!

maybe parallel after render upload it to IPFS as well? can be done on separate, this is already huge improvement if someone want to mint 5-10 pcs right away

@yangwao yangwao added the S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked label Mar 28, 2024
@yangwao
Copy link
Member

yangwao commented Mar 28, 2024

lwf
Thanks!
pay 30 usd

@yangwao yangwao merged commit f4b171c into kodadot:main Mar 28, 2024
19 checks passed
@yangwao
Copy link
Member

yangwao commented Mar 28, 2024

😍 Perfect, I’ve sent the payout
💵 $30 @ 9.55 USD/DOT ~ 3.141 $DOT
🧗 16faLfsywwNATaEfbH2ah75dn6ZmctQWpMS5G4KFhbmj5hnD
🔗 0x2f43575492aab3f0039b781c427590e80c53e938a31f943d77682cba1a06087f

🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

@yangwao yangwao added the paid pull-request has been paid label Mar 28, 2024
@hassnian hassnian deleted the issue-9719 branch March 28, 2024 09:58
This was referenced Mar 28, 2024
This was referenced Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paid pull-request has been paid S-expected-in-upcoming-release-🚚 S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hung up on slow rendering arts
5 participants