|
|
I am passing some debug text from java to SDL via a declare. Tonight I
added more than two lines of text to the concat/declare and the result
is truncated.
The doc says each individual string literal is max 256 chars. I see no
limit on the concat.
Regardless, this one is tipping over at the 156 character mark.
In the following, the #debug "======\n" line is not part of the
questioned text, and occurs later in processing and is used to
demonstrate the missing \n from the questioned text.
SDL:
#declare ThrustDebugText=concat("Using file
/pov/tteo2015/data/ttlo/thrust/23.976/_th-1045.inc\n for clock =
93.05800000001197\n",
" updateLocoPosition MecoStart vel=decel\n",
" updateLocoPosition MecoStart vel=decel\n",
" updateLocoPosition MecoStart vel=decel\n",
" updateLocoPosition MecoStart vel=decel\n",
" SpaceLocoVec=<110.00, 381.85, 20.00> CabooseVec=<110.00, 368.35,
20.00>\n"
);
output:
Using file /pov/tteo2015/data/ttlo/thrust/23.976/_th-1045.inc
for clock = 93.05800000001197
updateLocoPosition MecoStart vel=decel
updateLocoPos...============================
The shorter (two line) #concat works as expected.
SDL:
#declare ThrustDebugText=concat("Using file
/pov/tteo2015/data/ttlo/thrust/23.976/_th-1001.inc\n for clock =
91.21800000001103\n",
" SpaceLocoVec=<110.00, 355.74, 20.00> CabooseVec=<110.00, 342.24,
20.00>\n"
);
output:
Using file /pov/tteo2015/data/ttlo/thrust/23.976/_th-1001.inc
for clock = 91.21800000001103
SpaceLocoVec=<110.00, 355.74, 20.00> CabooseVec=<110.00, 342.24, 20.00>
============================
--
dik
Rendered 1024 of 921600 pixels (0%)
Post a reply to this message
|
|