QB64.org Forum

Active Forums => Programs => Topic started by: Basic_Bill on July 07, 2019, 05:48:14 am

Title: Pixel People (WIP)
Post by: Basic_Bill on July 07, 2019, 05:48:14 am
Pixel People love hanging out with other Pixel People but kinda prefer their own kind.

All comments welcome!

Enter # of groups (max 12)
Enter pixels per group (max 1000?)



Title: Re: Pixel People (WIP)
Post by: Basic_Bill on July 07, 2019, 05:58:44 am
If you try this demo, please enter 5 groups and 500 pixels each group and let me know what your cycles/second is.

I'm curious how slow my PC really is :)
Title: Re: Pixel People (WIP)
Post by: OldMoses on July 07, 2019, 07:06:29 am
Pixel People must be punks, they all got into little mosh pits. ;)

It started briefly in the 700s and dropped quickly to the low to mid 300s. I didn't wait for a conclusion, if there is one, but by the time the colors were largely consolidated into homogeneous groups with a small number still zipping around, my cps were down around 257ish

May I suggest adding this:

Code: QB64: [Select]
  1. INPUT "groups:       ", nsp
  2. INPUT "pixels/group: ", rc
  3.  

It's cryptic being presented with an input cursor and no idea what you're entering.
Title: Re: Pixel People (WIP)
Post by: johnno56 on July 07, 2019, 07:31:07 am
5 groups and 500 pixels: 35 to 37 per second
12 groups and 1000 pixels: 17 to 18 per second
Title: Re: Pixel People (WIP)
Post by: bplus on July 07, 2019, 09:50:56 am
Hi Basic_Bill

I second OldMoses comment, more explanation would be appreciated for those running your code cold.

My system results to Input of 5,500: Quickly drops to around 350 and then drifts down from there.

Interesting activity, how congregations disintegrate outside center area.

Have you tried smaller boards for quicker end results, stabilization, if any?
Title: Re: Pixel People (WIP)
Post by: TempodiBasic on July 07, 2019, 12:00:57 pm
at about 8000 cycles with many major aggregates
500---> 198 per second
1200---> 102 per second
on Toshiba Celeron 1000M @ 180Ghz 4GB Ram
Title: Re: Pixel People (WIP)
Post by: Petr on July 07, 2019, 01:10:16 pm
5g / 500pix ---->  147
12g / 1000 pix ->  70
10g / 100 pix -->   700
Title: Re: Pixel People (WIP)
Post by: Basic_Bill on July 07, 2019, 03:08:44 pm
Awesome! Thanks guys for the data and the tips.

I'm now adding some purpose (besides hanging out) and a life span to the pixels.

Here's some of mine speeds. Note that cycle speed is just for reference, not for any purpose.

12/1000 -150

 5/500 - 290

10/100 - 1340

I'm on an old i5 quad core @ 3ghz
Title: Re: Pixel People (WIP)
Post by: euklides on July 24, 2019, 03:40:18 am
5 groups and 500 pixels: 265-270 per second
12 groups and 1000 pixels: 135 per second
ASUS GL753