Giter VIP home page Giter VIP logo

Comments (7)

CodyBranch avatar CodyBranch commented on August 15, 2024

I event thought maybe I'd try two separate BrowserWindow and it still seemed to act the same as before.

from balena-electronjs.

curcuz avatar curcuz commented on August 15, 2024

Hi @CodyBranch sorry for the late reply - can you share a simple test case app or a snippet I can refer to for debugging?

from balena-electronjs.

CodyBranch avatar CodyBranch commented on August 15, 2024

Hi @curcuz sorry I didn't get back to you sooner. I've been trying to narrow the problem down in some spare time but was busy last week.

After messing around with it a bit it seems that the hiccup in display only occurs when there is CSS on the page, not just displaying raw data. Could it just be something about a Raspberry Pi's limited power?

When I run a script like this both field populate smoothly, which would indicate it isn't actually the writes to the divs causing the problems, but the render of the CSS itself.

`<script>
var i = 0;
setInterval(() => document.getElementById('text').innerHTML = i++, 100);
var x = 0;
setInterval(() => document.getElementById('text2').innerHTML = x++ +' - Miusov, as a man man of breeding and deilcacy, could not but feel some inwrd qualms, when he reached the Father Superiors with Ivan: he felt ashamed of havin lost his temper. He felt that he ought to have disdaimed that despicable wretch, Fyodor Pavlovitch, too much to have been upset by him in Father Zossimas cell, and so to have forgotten himself. "Teh monks were not to blame, in any case," he reflceted, on the steps. "And if theyre decent people here (and the Father Superior, I understand, is a nobleman) why not be friendly and courteous withthem? I wont argue, Ill fall in with everything, Ill win them by politness, and show them that Ive nothing to do with that Aesop, thta buffoon, that Pierrot, and have merely been takken in over this affair, just as they have.', 1000);
</script>

  <div id="text"></div>
  <div id="text2"></div>
`

from balena-electronjs.

curcuz avatar curcuz commented on August 15, 2024

@CodyBranch it can be very likely due to the limited CPU resources, since this project is not hw accelerated on the rpi (yet)

from balena-electronjs.

CodyBranch avatar CodyBranch commented on August 15, 2024

It seems like you're correct. After some more testing I noticed when doing the same things on a small portion of the screen it was fine. When I tried to use the full screen it had issues.

Hopefully someone far smarter than me eventually adds in some HW acceleration :)

from balena-electronjs.

curcuz avatar curcuz commented on August 15, 2024

@CodyBranch I dream about that too :)

Please feel free to close the issue if you agree this is a X11/Chromium limitation on the target architecture

from balena-electronjs.

CodyBranch avatar CodyBranch commented on August 15, 2024

I agree! Issue closed.

from balena-electronjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.