de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Raw text is briefly displayed before formatted text
PostPosted: Fri Jun 05, 2020 2:42 pm 
Offline
Regular
When setting the text with show(), I can briefly see the raw text before the formatted text is shown.
For example, the text might briefly appear as:
Quote:
Welcome back Rusty.\nToday is Friday, 11:23\n\n

before showing correctly as:
Quote:
Welcome back Rusty.
Today is Friday, 11:23


SexScripts version: 04-Feb-2020
Platform: Window 10 64-bit

To reproduce the problem using the sample code (below), keep pressing Ctrl-R to reset the script. Occasionally (about 1 in 3 for me), you can briefly see the raw text (see first image) before the expected formatted text is shown (see second image).

I've seen this occur during normal script execution, not just at the start, and it is related to what text was displayed before-hand. Clearing the text before-hand with show(null) or show("") means that the subsequently shown text does occasionally flicker with the raw text. Clearing the text before-hand with show(" ") seems to work-around the glitch.

Has anyone else experienced this? I see that both "Discipline Clinic" and "Domme" (and perhaps others) are clearing the text with show(" "); is that because of this?

Sample code:
Show spoiler


Attachments:
File comment: Raw text briefly displayed
flashing-text-rawtext.jpg
flashing-text-rawtext.jpg [ 133.98 KiB | Viewed 306 times ]
File comment: Correctly formatted text shown shortly afterwards
flashing-text-correct.jpg
flashing-text-correct.jpg [ 163.58 KiB | Viewed 306 times ]
Top
 Profile Send private message 
 
 Re: Raw text is briefly displayed before formatted text
PostPosted: Fri Jun 05, 2020 9:04 pm 
Offline
Veteran
User avatar
I have seen it when my PC is running slow


Top
 Profile Send private message 
 
 Re: Raw text is briefly displayed before formatted text
PostPosted: Sat Jun 06, 2020 6:00 am 
Offline
Active member
I just figured that was the way java did things. I see something like this when I load Sexscripts, for example, pretty much every time:

<html>Hello, Zap</html>
...although sexscript doesn't know me as Zap, but this is the sort of thing I see too.

I usually see this sort of thing when advancing to a new 'page'(new screen? ..not sure what the phraseology is called in user interface/programming speak if there is a consensus) and normally it's fast enough to not read it but visible enough to know it's happening. I just figured it was normal operation but I'm also using a gray haired laptop too, so maybe others don't regularly see it long enough to notice.


Top
 Profile Send private message 
 
 Re: Raw text is briefly displayed before formatted text
PostPosted: Sat Jun 06, 2020 3:29 pm 
Offline
Regular
Thanks for confirming that it's not just me. My PC isn't that slow, but I am shovelling a large amount of HTML formatted text into the show() command, so I suspect that this exacerbates the symptom.

It certainly looks like a fault, albeit only a cosmetic one. Every time I see it, I keep thinking there's something wrong with my script. I wonder if this contributes to some of the latency experienced before the text appears when using show().

Let's hope one of the SS authors gets the chance to take a look, although I accept that it's a low priority cosmetic-only glitch. In the meantime I'll use the show(" ") workaround to clear the text.


Top
 Profile Send private message 
 
 Re: Raw text is briefly displayed before formatted text
PostPosted: Wed Jun 10, 2020 1:26 pm 
Offline
Site Admin
User avatar
I agree ths is a problem.
I don't think there is any easy solution, however. The workaround of sending "" before is interesting, it helps to understand why the parser may be slowing down, but, as HTML parsing is a Java feature (just called from SexScripts), there's not much to do.


Top
 Profile Send private message 
 
 Re: Raw text is briefly displayed before formatted text
PostPosted: Thu Jun 18, 2020 6:12 pm 
Offline
Shy
User avatar
I have been seeing it also when I am using formatting commands. It's seems to display the text as is, realizes it has formatting commands and then re-displays with the formatting. I'll have to stick some show(" ") into my script.


Top
 Profile Send private message 
 
 Re: Raw text is briefly displayed before formatted text
PostPosted: Fri Jun 19, 2020 8:37 am 
Offline
Addict
Code:
def show = { text ->
          show(" ")
          show(text)
      }

Text still flickers and shows not formated text with show(" ") befor show("...").


Top
 Profile Send private message 
 
 Re: Raw text is briefly displayed before formatted text
PostPosted: Fri Jun 19, 2020 10:41 pm 
Offline
Regular
I'm experiencing the same too, although using show(" ") as a workaround seems to make the raw text appear much less often, it definitely still lurks and occasionally pops its head up.

The smoothest transition I've managed to produce so far when changing both text and image is to use the following sequence:
Code:
show(" ")
setImage(...)
show(...)

I can only guess that the call to setImage() either kicks something internally or causes enough additional latency before the new text is shown to allow it to sort itself out, but it doesn't work consistently. It might even help to add a short wait(...) after show(" "), but I haven't tried that, and I don't want to reduce the responsiveness of the script any further.

For me, the curious thing about the raw text display is that it shows with "\n" in the text. I would assume that all "\n" are replaced with "<br>" prior to being passed to the HTML rendering engine, in which case there should be no way that anything with "\n" should ever appear on the screen.


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Yandex [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2015
This website uses session cookies only.