POV-Ray : Newsgroups : povray.general : SDL processing speed : Re: SDL processing speed Server Time
19 Apr 2024 16:19:38 EDT (-0400)
  Re: SDL processing speed  
From: Le Forgeron
Date: 21 Apr 2018 15:21:11
Message: <5adb8f27@news.povray.org>
Le 21/04/2018 à 20:03, Bald Eagle a écrit :
> :)
> Thanks Jerome, Here's what I was just playing with.
> 
> 
>
http://news.povray.org/povray.text.scene-files/message/%3Cweb.5adb7bb992937f825cafe28e0%40news.povray.org%3E/#%3Cweb.5a
> db7bb992937f825cafe28e0%40news.povray.org%3E
> 
> you can change the amount of processing required by using a different image
> size, changing the "test" variable (test=10  = 1/10th of the area processed)
> or changing the #for (DO, 1, ...) loop in line 48.
> 
> 
> 

I tested with test=30 (to get a quick result, so less loops)
with a 800x600 image.


Parsing 314595K tokens

> Parser Time
>   Parse Time:       0 hours  0 minutes 55 seconds (55.865 seconds)
>               using 1 thread(s) with 55.849 CPU-seconds total
>   Bounding Time:    0 hours  0 minutes  0 seconds (0.022 seconds)
>               using 1 thread(s) with 0.018 CPU-seconds total

Now to dive into the code and try to understand.
The scanf is to parse each float (aka number), hard to optimize it.


Post a reply to this message


Attachments:
Download 'profile_parse_sdl.png' (335 KB) Download 'profile_advanced.png' (320 KB)

Preview of image 'profile_parse_sdl.png'
profile_parse_sdl.png

Preview of image 'profile_advanced.png'
profile_advanced.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.