RemoteWebViewClient icon indicating copy to clipboard operation
RemoteWebViewClient copied to clipboard

How to use the self-test

Open RyanEwen opened this issue 1 year ago • 9 comments

min_frame_interval should be slightly larger than the render time reported by the self-test (set self-test as a url parameter in the YAML).

Can you explain how to do this? I have tried adding ?self-test=true to my own URLs and to localhost and other URLs but I am not seeing the self test page.

RyanEwen avatar Sep 29 '25 19:09 RyanEwen

Set url: "self-test" in the YAML. I've just added this to the example in the README.

strange-v avatar Sep 29 '25 19:09 strange-v

Ah gotcha - I was thinking of querystring / url search parameters, but the URL should literally be set to self-test. Seems to work :) Thx

RyanEwen avatar Sep 29 '25 19:09 RyanEwen

Oh one last question - if I get a result like so... Partial: 6 (157ms) Full: 1 (1027ms)

Should min_frame_interval be based on the partial? Eg, 160?

RyanEwen avatar Sep 29 '25 19:09 RyanEwen

There isn’t a single right answer; ideally, it should be slightly bigger than a full update time.

What device are you using? The rendering performance seems rather slow...

strange-v avatar Sep 29 '25 19:09 strange-v

It's a Guition JC3248W535

Using a config I found elsewhere and tweaked for my purposes here: https://github.com/RyanEwen/esphome-lvgl/blob/main/devices/JC3248W535.yaml

I am not sure how to better optimize, but yes it does seem a bit slow. All of my devices seem slower than I had hoped given how well the factory demos work

RyanEwen avatar Sep 29 '25 19:09 RyanEwen

I see. I should have a non-S3 screen somewhere… If I find one and do some testing, I’ll update you here.

strange-v avatar Sep 29 '25 20:09 strange-v

Is the self-test affected by the settings that it helps identify? In other words, should I remove settings such as these before running it, or will it matter?

  full_frame_tile_count: 1
  every_nth_frame: 1
  min_frame_interval: 1032
  max_bytes_per_msg: 61440

RyanEwen avatar Sep 29 '25 20:09 RyanEwen

Still messing around but I got things into a better state by changing display drivers.

Partial: 111 (9ms) Full: 16 (62ms)

I read that mipi_spi is replacing the one I was using, and there's a preset for my model built-in now:

display:
  - id: main_display
    platform: mipi_spi
    model: JC3248W535
    update_interval: never
    auto_clear_enabled: false

Still playing around but this is promising

RyanEwen avatar Sep 29 '25 20:09 RyanEwen

  1. Yes, self-test uses all parameters, including min_frame_interval (however, as we measure only rendering time, it shouldn't have a significant impact)
  2. Those are much better results.

strange-v avatar Sep 30 '25 03:09 strange-v